X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fattributes.js;h=eecf90fa90024f2c018b0e597331069ffbadbe55;hb=f298cce100c6fe23840ac95e66aaea9cb2bfb447;hp=91a0fe176b7b95e89ddc48fcea5fe2e31bb1e25a;hpb=261b7efb5f86a5c9a3de8434f3cad858101e4249;p=jquery.git diff --git a/src/attributes.js b/src/attributes.js index 91a0fe1..eecf90f 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -158,7 +158,7 @@ jQuery.fn.extend({ } if ( jQuery.isArray(val) && /radio|checkbox/.test( this.type ) ) { - this.checked = jQuery.inArray(this.value || this.name, val) >= 0; + this.checked = jQuery.inArray( this.value, val ) >= 0; } else if ( jQuery.nodeName( this, "select" ) ) { var values = jQuery.makeArray(val);