I have an array of values that I need to populate a dropdownlist (read <Select>) at runtime. In the name of performance (and because there's dozens of these drop down lists on the page) each Select object is being populated on mouse over.
Given that I have my array already populated, is there an easy way to set the width of the drop down lists given the data in my array? My initial thought was to dump the array contents into a DIV and grab the width, applying it to the style for each of the SELECT tags. Can anyone think of anything more elegant?
Cheers
Given that I have my array already populated, is there an easy way to set the width of the drop down lists given the data in my array? My initial thought was to dump the array contents into a DIV and grab the width, applying it to the style for each of the SELECT tags. Can anyone think of anything more elegant?
Cheers
Comment