Commit 7f27816d authored by Ariel Flesler's avatar Ariel Flesler

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

parent ec075266
...@@ -401,6 +401,9 @@ jQuery.fn = jQuery.prototype = { ...@@ -401,6 +401,9 @@ jQuery.fn = jQuery.prototype = {
return undefined; return undefined;
} }
if( value.constructor == Number )
value += '';
return this.each(function(){ return this.each(function(){
if ( this.nodeType != 1 ) if ( this.nodeType != 1 )
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment