diff options
author | Ariel Flesler <aflesler@gmail.com> | 2008-05-24 17:57:45 +0000 |
---|---|---|
committer | Ariel Flesler <aflesler@gmail.com> | 2008-05-24 17:57:45 +0000 |
commit | 7f27816d3068bff70eecfcf18366b54345750efe (patch) | |
tree | 8fca088ec7d7cd2b9ac8cf12fc90fe6dff9f42c2 | |
parent | ec075266e99e5b3875241341ec1c716fb81b72fc (diff) | |
download | jquery-7f27816d3068bff70eecfcf18366b54345750efe.tar.gz jquery-7f27816d3068bff70eecfcf18366b54345750efe.zip |
jquery core: casting numbers received by val() to string.
-rw-r--r-- | src/core.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core.js b/src/core.js index fdf5072eb..d46f89d16 100644 --- a/src/core.js +++ b/src/core.js @@ -401,6 +401,9 @@ jQuery.fn = jQuery.prototype = { return undefined; } + if( value.constructor == Number ) + value += ''; + return this.each(function(){ if ( this.nodeType != 1 ) return; |