jquery core: casting numbers received by val() to string.
authorAriel Flesler <aflesler@gmail.com>
Sat, 24 May 2008 17:57:45 +0000 (17:57 +0000)
committerAriel Flesler <aflesler@gmail.com>
Sat, 24 May 2008 17:57:45 +0000 (17:57 +0000)
src/core.js

index fdf5072..d46f89d 100644 (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;