diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index 13c568cb3..27eea1c81 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -3129,7 +3129,6 @@ function test_val() { $("#multiple").val(["Multiple2", "Multiple3"]); $("input").val(["check1", "check2", "radio1"]); $("input").val(1); - $("input").val([1, 2, 3]); } function test_selector() { diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index 9cf3a5864..29b7697b2 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -1363,9 +1363,9 @@ interface JQuery { /** * Set the value of each element in the set of matched elements. * - * @param value A string of text, an array of strings, number or an array of numbers corresponding to the value of each matched element to set as selected/checked. + * @param value A string of text, an array of strings or number corresponding to the value of each matched element to set as selected/checked. */ - val(value: string|string[]|number|number[]): JQuery; + val(value: string|string[]|number): JQuery; /** * Set the value of each element in the set of matched elements. *