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 8586529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:19:52+00:00 2026-06-11T22:19:52+00:00

I have two combo boxes in my JSP page named combo1 and combo2. I

  • 0

I have two combo boxes in my JSP page named combo1 and combo2. I have a table in mysql called ZoneData. In this table there are two columns called zone and subzone. When the web page loads I want that when I select a zone name from combo1, all subzones of the selected zone should be extracted from ZoneData table and added in combo2. I am unable to do this. Should I use any combo1’s event. Please help I am a newbie in web programming.

  • 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-11T22:19:54+00:00Added an answer on June 11, 2026 at 10:19 pm

    The usual way to do this type of things is to use javascript to manage combo1 onChange event.

    I recommend you to use jQuery framework, as it eases a lot the basics of javascript client coding http://jquery.com

    What you do when the event is fired is to capture it on a javascript function and make an AJAX call to your server, where you have some server method to filter the combo2 values that has to be loaded into your combo2 depending on the value of combo1. When this method returns, the AJAX call will receive the values from the method and will allow you to update data in combo2

    This is a brief example of the jQuery code you’ll need to manage the change event and make the AJAX call:

    $("#combo1").change(function () {
        $.ajax({
            url: herePutTheUrlToYourServerMethod,
            data: $("#combo1").val(),
            success: function (returnedValueFromYourServerMethod) {
                //Here use returnedValueFromYourServerMethod data to reload combo2 info
                //There are several differents ways to do it that depends on what will 
                //   your server method return
            } 
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my jsp page i have one text box and two combo box. An
I have two combo boxes set to same store combo1 xtype: 'combo', store: client_store,
I have two combo boxes in Sheet2 (not a UserForm), named Xchoose and Ychoose.
I have a page containing two combo boxes. I want to make them in
I have a form with two combo boxes and couple of buttons. One of
I have two combo boxes, one for 'order by' and the other 'direction' (ascending,
I have in a form two combo boxes that have the exact itemssource property.
I have two combo boxes in an html form that are going to be
I have two combo boxes, one to report scores and one to set who
I have a form that needs to use two combo boxes but the values

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.