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!

Dynamic Menu

Status
Not open for further replies.

24680

Programmer
Nov 20, 2002
1
AU
I am trying to put together a form that pulls information out of a table called properties in the db. Then I am trying to add 2 more colums at the end of the table with drop downs. The first drop down is category and the second is sub_category. The point is that when you pick a category only the relative sub_categories will show up. Category and sub category are in separate tables with a common column cat_id. On submit it should populate a new table with all the info. I can get the list but I am having proplems with the drop downs.
[sig][/sig]
 
Hi,

You need somehow activate the dropdown menu of your list (meaning whenever you select the uplevel Category, the sublevel category changes). You can use onClick to do that

I hope it helps
[sig]<p>GH<br>[/sig]
 
I've used some javascript code I found at to do exactly what you're asking!.

It's called &quot;Country Chooser&quot;. I've adapted it to run Cold Fusion queries to populate the select boxes and it works a treat!

Hope this helps.
[sig]<p>Peter Toby<br><a href=mailto:webmaster@petertoby.com.au>webmaster@petertoby.com.au</a><br><a href= site is under construction but getting better![/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top