Added possibility to add number or number[] to .val()

This commit is contained in:
Michal Baše
2015-11-06 09:03:08 +01:00
parent 35989a3ab4
commit 7d29bad1f3
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -3128,6 +3128,8 @@ function test_val() {
$("#single").val("Single2");
$("#multiple").val(["Multiple2", "Multiple3"]);
$("input").val(["check1", "check2", "radio1"]);
$("input").val(1);
$("input").val([1, 2, 3]);
}
function test_selector() {