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 with 3 additions and 0 deletions.
  1. +3 −0 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;

0 comments on commit 7f27816

Please sign in to comment.
You can’t perform that action at this time.