Skip to content

Commit 257960c

Browse files
committed
[form] Get value of checkbox if its have
1 parent 9797fec commit 257960c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/definitions/behaviors/form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ $.fn.form = function(parameters) {
455455
}
456456
if(isCheckbox) {
457457
if(isChecked) {
458-
values[name].push(true);
458+
values[name].push(value || true);
459459
}
460460
else {
461461
values[name].push(false);
@@ -473,7 +473,7 @@ $.fn.form = function(parameters) {
473473
}
474474
else if(isCheckbox) {
475475
if(isChecked) {
476-
values[name] = true;
476+
values[name] = value || true;
477477
}
478478
else {
479479
values[name] = false;

0 commit comments

Comments
 (0)