Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9291753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:43:21+00:00 2026-06-18T20:43:21+00:00

I have created this JSP page in which all the drop down menus are

  • 0

I have created this JSP page in which all the drop down menus are populated from database. This functionality works fine I’ve tested it. But now I need to add a function so the third drop down menu (which is Forecast ISC) only becomes visible when I select a certain field from first menu which is “Type” .So far I haven’t created any java script because that’s what i need help with! Any suggestions or comment will help!

  <form:form action="/analysis/analysisSummary" modelAttribute="shipData"
    method="POST" onChange = 'checkType()'>
    <br>
    <table width="100%">
        <tr>
            <td width="20%"></td>
            <td width="20%">Type:<form:select id="type" path="type">
            <form:option value="All">------ All ------   </form:option>
        <form:options items="${analysisEvents}" itemLabel="description"
                        itemValue="code" />
                </form:select>
            </td>


            <td width="20%">Forecast ISC:<form:select id="iscCode"
                    path="iscCode">
                    <form:option value="All">ALL</form:option>
                    <form:options items="${iscCodes}" />
                </form:select>
            </td>

            <td width="30%"><div style="visibility: hidden">
                    Actual ISC: <form:select id="sctry"
                    path="iscCode">
                    <form:option value="All">ALL</form:option>
                    <form:options items="${iscCodes}" />
                </form:select>
                </div>
            </td>

HTML:

       <form id="shipData" onChange="checkType()" action="/analysis/analysisSummary" method="POST">
    <br>
    <table width="100%">
        <tr>
            <td width="20%"></td>
            <td width="20%">Type:<select id="type" name="type">
                    <option value="All">------ All ------</option>
                    <option value="U">Unanalyzed</option><option value="H">Pending</option><option value="F">True Hit</option><option value="C">Return Reason</option><option value="S">Parcel Returned</option><option value="T">Long Term Pending</option><option value="Z">Value &gt;2500</option>
                </select>
            </td>


            <td width="20%">Forecast ISC:<select id="iscCode" name="iscCode">
                    <option value="All">ALL</option>
                    <option value="JFK">JFK</option><option value="LAX">LAX</option><option value="MIA">MIA</option><option value="ORD">ORD</option><option value="SFO">SFO</option>
                </select>
            </td>

            <td width="30%"><div style="visibility: hidden">
                    Actual ISC: <select id="sctry" name="iscCode">
                    <option value="All">ALL</option>
                    <option value="JFK">JFK</option><option value="LAX">LAX</option><option value="MIA">MIA</option><option value="ORD">ORD</option><option value="SFO">SFO</option>
                </select>
                </div>
            </td>
            <td width="8%"></td>
        </tr>
    </table>
    <br>
    <table width="100%">
        <tr>

            <td width="20%"></td>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T20:43:22+00:00Added an answer on June 18, 2026 at 8:43 pm
      $(document).ready(function () {
            $('#shipData').find('#type').change(function () {
                if ($(this).val() == 'T') {
                    $('#shipData').find('#divIscCode').show();  //To  show only drop down
                    //$('#shipData').find('#sctry').val('All'); //To initial value if required.
                } else {
                    $('#shipData').find('#divIscCode').hide();
                }
            }).trigger('change');
        });
    

    For DEMO

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created filter for all jsp page which allow to redirect page when
In my Tomcat container I have created a JSP page in which I'm rendering
I have a JSP page which will be filled with dynamically created tables with
I have created a jsp page in which I load a set of text
I have created my database by this sql query: (CREATE DATABASE + DBName +
I have a JSP page where I load an arraylist which has the list
I have a jsp page in which there is a html table. The contents
I have created a child.jsp file which has a button named Continue. I have
Right, here's my situation, I have a form on a page (index.jsp) which submits
I have a JSP page in which there is a hyperlink to add a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.