> // Safari mis-reports the default selected property of a hidden
> option
> // Accessing the parent's selectedIndex property fixes it
> if ( name == "selected" && elem.parentNode ) {
> elem.parentNode.selectedIndex;
> }
>
> I previously made two points:
> 1) This code will not work of the
The attr() method contains this spooky code:
// Safari mis-reports the default selected property of a hidden
option
// Accessing the parent's selectedIndex property fixes it
if ( name == "selected" && elem.parentNode ) {
elem.parentNode.selectedIndex;
}
I previously made two points:
1