jquery core: casting numbers received by val() to string.

This commit is contained in:
Ariel Flesler 2008-05-24 17:57:45 +00:00
parent ec075266e9
commit 7f27816d30

View file

@ -401,6 +401,9 @@ jQuery.fn = jQuery.prototype = {
return undefined;
}
if( value.constructor == Number )
value += '';
return this.each(function(){
if ( this.nodeType != 1 )
return;