Closed dragonofmercy closed 12 years ago
Hi @zellerda, it`s done in this way because of some ie buggy behavior (if I remember right ie always add selected attribute to first element). So I decided that it is better to add a class to option element, than to solve ie bugs or implements some of workaround.
Hello I found a little bug in your code at the line 68 replace this
if (option.hasClass("selected")) {
by thatif (option.attr("selected")) {
If this line is not replaced the value cannot be set by default from the select.
Regards.