mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
jquery core: casting numbers received by val() to string.
This commit is contained in:
parent
ec075266e9
commit
7f27816d30
@ -401,6 +401,9 @@ jQuery.fn = jQuery.prototype = {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if( value.constructor == Number )
|
||||
value += '';
|
||||
|
||||
return this.each(function(){
|
||||
if ( this.nodeType != 1 )
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user