Browse Source

Merge pull request #2979 from maturano/2954_checkbox_value

[form] Get value of checkbox if its have
pull/3015/head
Jack Lukic 9 years ago
parent
commit
dda3cc0568
1 changed files with 2 additions and 2 deletions
  1. 4
      src/definitions/behaviors/form.js

4
src/definitions/behaviors/form.js

@ -455,7 +455,7 @@ $.fn.form = function(parameters) {
}
if(isCheckbox) {
if(isChecked) {
values[name].push(true);
values[name].push(value || true);
}
else {
values[name].push(false);
@ -473,7 +473,7 @@ $.fn.form = function(parameters) {
}
else if(isCheckbox) {
if(isChecked) {
values[name] = true;
values[name] = value || true;
}
else {
values[name] = false;

Loading…
Cancel
Save