Click to See Complete Forum and Search --> : about listbox!


pelegk1
05-12-2003, 07:36 AM
i want to make 2 things :
1)to make a dynamic listbox (drop down box wit the "option")
2)to be able to add to this dynamicly list box to each of the
"option" to add a "name" fild with a value that i wantto give it!
thanks
Peleg

pelegk1
05-12-2003, 08:47 AM
opt[opt.length] = new Option(text, value,name); ??

Jona
05-12-2003, 05:27 PM
Dave, wouldn't that cause an error: 'text' is undefined? And also, error: 'value' is undefined. You would have to put those in quotes:

opt[opt.length] = new Option("text", "value");

Jona
05-12-2003, 05:44 PM
That's what I thought. I just wanted to clarify that for pelegk1, to make sure he understood. :)