M
Mr. Wilson
On this page (just a demo) I can’t get IE6 to auto-select the first item
in the dynamically-generated drop-down menus. Well, that isn’t entirely
true. Sometimes it works properly, but never on the first try. When it
fails, the error message it gives is:
"Cannot set the selected property. Unspecified error."
FF2, IE7, and OP9 all behave as expected. I have tried a variety of
workarounds to no avail. I don't have an exhaustive list of everything I
have tried, but it seems like I have tried a hundred ways of setting the
"selected" attribute.
The page uses jQuery 1.1.2. Currently the page is using...
$("#select-how option:first-child").attr("selected","selected");
....to auto-select the first item in the list.
Can anybody offer me some clues?
--Mr. Wilson
in the dynamically-generated drop-down menus. Well, that isn’t entirely
true. Sometimes it works properly, but never on the first try. When it
fails, the error message it gives is:
"Cannot set the selected property. Unspecified error."
FF2, IE7, and OP9 all behave as expected. I have tried a variety of
workarounds to no avail. I don't have an exhaustive list of everything I
have tried, but it seems like I have tried a hundred ways of setting the
"selected" attribute.
The page uses jQuery 1.1.2. Currently the page is using...
$("#select-how option:first-child").attr("selected","selected");
....to auto-select the first item in the list.
Can anybody offer me some clues?
--Mr. Wilson