Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populate drop down list with JS

Status
Not open for further replies.
Jan 20, 2005
65
GB
I have an MySQL table containing categories.
I have a drop down box with values of A-Z.
I have another drop down that I want to populate with categories

When a user chooses a letter from the drop down box, how can I populate the Categories drop down box
 
Either send the selection from the first dropdown back to the server (submit a form) and let it create the category drop down on the server side (not an optimal solution), or use an XMLHttpRequest to send the A-Z selection to the server, have the server send back only the categories required, and dynamically add the categories to the category drop down.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top