473,395 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

onchange event multiple selection

i have three dropdown populating using ajax just like countery state city.everything is working fine on basis of country state populate and on basis of state and country city populate .now i want when country is selected the city dropdown should be populated automaticaly .
i am using ajax.
pls suggest
Jan 19 '11 #1
7 2513
stepterr
157 100+
Have a look at this site for a reference on what you'll need to do.
Jan 21 '11 #2
dear stepterr
As i have already written all dropdowns are working properly
but now i want to fill the third dropdown onchange of first dropdown .it means when user will select first dropdown the third's dropdown values will fill automatically and also now if check the second here should be also values

Thanks....
Jan 22 '11 #3
mfaisalwarraich
194 100+
each country have different states and then different cities. how u can populate cities without knowing state?
Jan 22 '11 #4
HaLo2FrEeEk
404 256MB
By "populated", do you mean you want it to actually select a specific city, or you want it to fill with cities that are contained within that country? That doesn't sound very smart to me, and doesn't make any sense at all. Most countries have hundreds of major cities, you don't want your use to have to scroll through hundreds of items to find the one they're after.

Select country, populate the state dropdown with states for the selected country, select state, THEN populate the city dropdown with possible cities for the selected state.
Jan 24 '11 #5
see what i want was that onselection of country state and city should be filled out automatically .
now i have fix the problem.
thanku vary much for u'r replies..


deepak
Jan 24 '11 #6
HaLo2FrEeEk
404 256MB
I'm still confused, do you mean county or country? America would be a country. In America there are 50 states, each state has many cities. You can't autopopulate the state and city by setting a country, that doesn't make sense. If you mean county, then I can understand.
Jan 24 '11 #7
yes it is country.
actually i am creating a website for online restaurant booking.so here i have city ,locality and cuisine in a dropdown just like as country state and city.
Jan 24 '11 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Covad | last post by:
Hi all, For some reason my change() function is only called when the page loads. I'd much rather it gets called when the select changes. Here's the code: window.onload = init; function...
2
by: Asit | last post by:
In JavaScripts checks for an onChange event against the value of the textbox at the time of the last onChange event. Since an onChange Event never fired after you changed the text first time ,...
4
by: Zeebra3 | last post by:
Here goes: I have a web form with several asp:dropdownlists, with which, when selection is changed I want to fire an event defined in some clientside js. The content of the clientside code is...
2
by: ggk517 | last post by:
I have a script like below: ------------------------------------------------------------------------------------------------------------------------ <html> <head> <title>TEST</title> <script...
3
by: b_naick | last post by:
I realize that the onChange event for a drop down can be trapped as follows: <select name="myDropDown" onChange="somefunc"> Is it possible to trap the onChange event outside of the select...
18
by: Mike Will via WebmasterKB.com | last post by:
I need some help with an onchange event for one of my select boxes on my form. I need to select a value from the box and use that value in the query that will produce results for another select...
8
by: jrayjr | last post by:
Im work on a form that will dynamicly display objects. The form is completed and working but am adding some features that will appear based on the user selection. I am unable to get the onchange...
7
by: robtyketto | last post by:
Greetings, I'm slowly building up code to do the following:- Display TWO selection option boxes (cascading). If the FIRST selection option box changes then reload the jsp using onchange...
13
by: andypb123 | last post by:
Hello, The onchange event fires in IE6 in a SELECT element when scrolling through the list with the up and down arrows on the keyboard. In Firefox it only fires after you hit the enter key, which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.