JohnandSwifty
Technical User
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?
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?