Click to See Complete Forum and Search --> : options.add() not available in Javascript?


peter
01-30-2002, 05:20 AM
Hi,

is it true that ...options.add(...) not supported in javascript? i got
this error when trying to insert a new option to a <select> element on my
page. is there a workaround?

thx!

Peter

Hans Wurst
02-01-2002, 03:04 PM
yes...

formname.selectboxname.options[formname.selectboxname.options.length]=new
Option("new text for option")