473,395 Members | 1,680 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.

populating second drop down list box based on the selection of the first

19
Hi i m trying to create two drop down list boxes where the second drop downl list box is populated based on the selection of the first one.I have searching the net for days and even the scripts i downloaded don't seem to be working..Can anyone help me plz.....Its urgent...I have deadline approaching....
Jan 31 '10 #1
7 5130
kovik
1,044 Expert 1GB
I believe this is referred to in the programming world as "chained dropdowns" or "chained select boxes." It can be done on the server-side (i.e. PHP), or the client-side (JavaScript).
Feb 1 '10 #2
nlal
19
any suggestions for javascript?
Feb 1 '10 #3
kovik
1,044 Expert 1GB
Have you tried Googling the terms that I've given you? There are a lot of resources on this.
Feb 1 '10 #4
nlal
19
Thanks...I managed to get it....
http://www.dreamincode.net/forums/showtopic41403.htm
Feb 1 '10 #5
am5786
1
I've a request to kovik, if you don't know the solution please stop asking others to google the query, people come to the forum after they've searched all over. Simple if you don't have any solution please stay away. Thanks

PS: If someone has asp codes for the query. Thanks
Oct 8 '10 #6
kovik
1,044 Expert 1GB
Yes, I'm sure that the OP Googled it, especially since after I gave him a query to search for and he found what he needed.

And I do know the solution... I built a JavaScript solution to this a while ago, but I still haven't tested it much, so I haven't published it yet. It builds a chained selection based on a single selection drop down, so that it works with or without JavaScript, and doesn't rely on server-side requests to do so.

I may even publish it in this thread when I feel it's polished enough. I was planning on publishing it in the next few days, anyway.


I have a request for you: Don't hijack other posters' threads, and don't necro old threads.
Oct 8 '10 #7
kovik
1,044 Expert 1GB
Here it is:
Chained selection drop down plugin for jQuery
Oct 10 '10 #8

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

Similar topics

2
by: Big Time | last post by:
Hi, I have a question regarding using drop down lists and how to get them to limit the list of a subsequent field. I have a database which has the names of colleges. Each college has it's own...
5
by: Geoff Portbury | last post by:
I'm a swimming club coach. I have a data base for recording times at various meets. I have a FORM for entering times called SWIM TIMES. When I enter the swimmers name ID, eg FOR01 for Doug Ford I...
6
by: Chris Leuty | last post by:
I am populating a multiselect Listbox from a dataset, with the content of the listbox filled by one table, and the selections determined from another table. So far, I have been keeping the dataset...
1
by: msnews.microsoft.com | last post by:
I'd like to hear your thoughts on best methods for populating drop down list controls. I have states and countries drop down lists that don't change often, so naturally I "hard code" them in the...
1
by: asad | last post by:
Hello, i want to populate the drop down box values based on the first drop down box value, actually i have form in which user will select a car maker and based on that value below 2 drop down...
3
by: John Walker | last post by:
Hi, On an ASP.NET page I have a drop down list control. When the user pulls down the list and makes a selection, I perform validation, and if the validation fails I want the selected item in...
2
by: Jim in Arizona | last post by:
My goal, somehow, is to populate a dropdownlist with all the user names in active directory. I don't even know where to begin, really. I added a reference to System.DirectoryServices so I could...
1
by: Stephene | last post by:
New to the world of web design/php/mysql and need help please. What I'm trying to do: I would like a web page with three drop down menus each populated by a query The first represents...
11
by: tokcy | last post by:
Hi everyone, I am new in php and ajax, i am facing the prob while i click on element of first drop down then in second dropdown all element showl come from database. I mean i have three dropdown 1....
14
by: Philth | last post by:
Hi there, I've essentially got a form with several drop down, each populated by columns in various tables. The populating bit works fine - the column rows appear as they should in the menu. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.