X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fattributes.js;h=147c353f4219a14cce5a9da3674818fef583b18f;hb=ea507b3e998126ae1f94f4fd1618994d645c9cc8;hp=ec4841bd3f4f27d271f01a5388e8fd39ca97e2e0;hpb=c7c067723006b0dfbb123c1a36885580a587d091;p=jquery.git diff --git a/src/attributes.js b/src/attributes.js index ec4841b..147c353 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -215,6 +215,10 @@ jQuery.fn.extend({ val = ""; } else if ( typeof val === "number" ) { val += ""; + } else if ( jQuery.isArray(val) ) { + val = jQuery.map(val, function (value) { + return value == null ? "" : value + ""; + }); } if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) {