The option isn't, necessarily, hidden when this occurs.
This commit is contained in:
parent
4729f4d443
commit
7b0b348419
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ jQuery.extend({
|
|||
// These attributes require special treatment
|
||||
var special = rspecialurl.test( name ), parent = elem.parentNode;
|
||||
|
||||
// Safari mis-reports the default selected property of a hidden option
|
||||
// Safari mis-reports the default selected property of an option
|
||||
// Accessing the parent's selectedIndex property fixes it
|
||||
if ( name === "selected" && parent ) {
|
||||
parent.selectedIndex;
|
||||
|
|
Loading…
Reference in a new issue