Fix setting value attributes on option elements. Fixes #9071.
This commit is contained in:
parent
6d2fd57f45
commit
4ac2fdda2c
2 changed files with 4 additions and 2 deletions
|
@ -199,7 +199,7 @@ jQuery.fn.extend({
|
|||
hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ];
|
||||
|
||||
// If set returns undefined, fall back to normal setting
|
||||
if ( !hooks || ("set" in hooks && hooks.set( this, val, "value" ) === undefined) ) {
|
||||
if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
|
||||
this.value = val;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue