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!

Dynamic, Multiple Drop-Downs

Status
Not open for further replies.

JohnandSwifty

Technical User
Joined
May 31, 2005
Messages
192
Location
GB
Hi,

Im shiny new to Javascript so here goes.

I have two drop-down boxes, the first populating the second. The options are presently coded, but i would like to create them dynamically to allow the adding of new options without editing code etc.

Im using coldfusion and need to create options for each result returned in a query.

Something like...

var = 1 to #Recordcount.Query#

options[var]=new Option("#Query.Name#","#Query.Value#");

anyone point me in the right direction?
 
No sense in re-inventing the wheel so here's some faqs here on this site for this very topic.

faq216-4766
faq216-344
faq216-335

Additionally, I'm sure that googling for "dynamic pulldown javascript" would probably result in a plethora of information.

-kaht

[small] <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
[banghead] [small](He's back)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top