X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fattributes.js;h=91a0fe176b7b95e89ddc48fcea5fe2e31bb1e25a;hb=261b7efb5f86a5c9a3de8434f3cad858101e4249;hp=787c6bbe4178f399cfea88d3059eb41d025b3b86;hpb=c97e914d40a8a24b47f2b6ef4f706b5367d94ee2;p=jquery.git diff --git a/src/attributes.js b/src/attributes.js index 787c6bb..91a0fe1 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -164,7 +164,7 @@ jQuery.fn.extend({ var values = jQuery.makeArray(val); jQuery( "option", this ).each(function() { - this.selected = jQuery.inArray( this.value || this.text, values ) >= 0; + this.selected = jQuery.inArray( this.value, values ) >= 0; }); if ( !values.length ) {