Coerce all array values to strings before comparison in val(). Fixes bug #7123.
This commit is contained in:
parent
a2aefbf3b1
commit
b03416954d
2 changed files with 17 additions and 1 deletions
|
@ -215,6 +215,10 @@ jQuery.fn.extend({
|
|||
val = "";
|
||||
} else if ( typeof val === "number" ) {
|
||||
val += "";
|
||||
} else if ( jQuery.isArray(val) ) {
|
||||
val = jQuery.map(val, function (value) {
|
||||
return value == null ? "" : value + "";
|
||||
});
|
||||
}
|
||||
|
||||
if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue