Click to See Complete Forum and Search --> : Netscape Compatibility: Dynamically Adding elements


kari
08-06-2003, 03:58 PM
When I add elements to a list <select > dynamically thru javascript, Explorer automatically adjusts the width of the object. Where as in Netscape it doesn't. It just puts in whether or not the value fits in.

List1.options[i]= new Option (pname2, pvalue);

If the list is empty, its really can't see the dynamically added elements.

Is there any way to do it in netscape.

Please help

Khalid Ali
08-06-2003, 05:34 PM
you will need to use CSS to explicitly set the size of the list box( or you may want to change it dynamically depending upon the text length)