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

Need a javascript function that creates a select box

Status
Not open for further replies.

hodashirzad

Programmer
Joined
May 27, 2006
Messages
1
Location
GB
Hi,

I have a select box that i want when viewer goes to it and selects any of it's options it will automatically creates another selection box exactly the same. So I guess it should be done with a javascript function using onChange().
I know it should be easy but so far I haven't found anything on the net:(

Thank you in advance.
 
There's a whole section in the FAQs for this forum on dynamic list boxes, so you can't have searched very far.

See my FAQ, "How do I create multi-level select / list / drop down boxes?" (faq216-6294) for one of many ways to do this.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top