From 7f27816d3068bff70eecfcf18366b54345750efe Mon Sep 17 00:00:00 2001 From: Ariel Flesler Date: Sat, 24 May 2008 17:57:45 +0000 Subject: [PATCH] jquery core: casting numbers received by val() to string. --- src/core.js | 3 +++ 1 file changed, 3 insertions(+) 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;