Skip to content

Commit 7f27816

Browse files
committed
jquery core: casting numbers received by val() to string.
1 parent ec07526 commit 7f27816

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@ jQuery.fn = jQuery.prototype = {
401401
return undefined;
402402
}
403403

404+
if( value.constructor == Number )
405+
value += '';
406+
404407
return this.each(function(){
405408
if ( this.nodeType != 1 )
406409
return;

0 commit comments

Comments
 (0)