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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing one drop down menu based on a selection in another.

Status
Not open for further replies.

monkeymagic2222

Technical User
May 13, 2002
78
GB
Hi,

Is there an easy way I can change the items shown in a dropdown list by clicking on another dropdown list. i.e. Category then Sub Category. Both drop downs need to be created dynamically from tables in a sql db.

I have trawled through various internet articles but the only real relevant items I can find involve using javascript "onchange" code when an item has been selected then posting the page back to itself and requerying the second table using a querystring. If I use this method I will lose all the other data a user has entered on that page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top