mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 21:18:33 -05:00
jquery core: casting numbers received by val() to string.
This commit is contained in:
@@ -401,6 +401,9 @@ jQuery.fn = jQuery.prototype = {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if( value.constructor == Number )
|
||||
value += '';
|
||||
|
||||
return this.each(function(){
|
||||
if ( this.nodeType != 1 )
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user