Skip to content
Permalink
Browse files
jquery core: casting numbers received by val() to string.
  • Loading branch information
flesler committed May 24, 2008
1 parent ec07526 commit 7f27816d3068bff70eecfcf18366b54345750efe
Showing 1 changed file with 3 additions and 0 deletions.
@@ -401,6 +401,9 @@ jQuery.fn = jQuery.prototype = {
return undefined;
}

if( value.constructor == Number )
value += '';

return this.each(function(){
if ( this.nodeType != 1 )
return;

0 comments on commit 7f27816

Please sign in to comment.