mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
JQuery - removed number[] from .val()
This commit is contained in:
@@ -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() {
|
||||
|
||||
Vendored
+2
-2
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user