mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
@@ -3128,6 +3128,7 @@ function test_val() {
|
||||
$("#single").val("Single2");
|
||||
$("#multiple").val(["Multiple2", "Multiple3"]);
|
||||
$("input").val(["check1", "check2", "radio1"]);
|
||||
$("input").val(1);
|
||||
}
|
||||
|
||||
function test_selector() {
|
||||
|
||||
4
jquery/jquery.d.ts
vendored
4
jquery/jquery.d.ts
vendored
@@ -1363,9 +1363,9 @@ interface JQuery {
|
||||
/**
|
||||
* Set the value of each element in the set of matched elements.
|
||||
*
|
||||
* @param value A string of text or an array of strings 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[]): 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