jquery core: casting numbers received by val() to string.
This commit is contained in:
parent
ec075266e9
commit
7f27816d30
1 changed files with 3 additions and 0 deletions
|
@ -401,6 +401,9 @@ jQuery.fn = jQuery.prototype = {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( value.constructor == Number )
|
||||||
|
value += '';
|
||||||
|
|
||||||
return this.each(function(){
|
return this.each(function(){
|
||||||
if ( this.nodeType != 1 )
|
if ( this.nodeType != 1 )
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue