bugfix
This commit is contained in:
parent
9bd7ca9d6c
commit
fe6ce790a6
1 changed files with 1 additions and 0 deletions
|
|
@ -36,6 +36,7 @@
|
||||||
return this.name.toLowerCase() == fieldName;
|
return this.name.toLowerCase() == fieldName;
|
||||||
});
|
});
|
||||||
if (input.attr("type") == "checkbox") { // special handling for checkboxes
|
if (input.attr("type") == "checkbox") { // special handling for checkboxes
|
||||||
|
input.attr("value", "true");
|
||||||
if (value=="true") input.attr("checked", "true");
|
if (value=="true") input.attr("checked", "true");
|
||||||
else input.removeAttr("checked");
|
else input.removeAttr("checked");
|
||||||
// Add default false value as a unchecked checkbox is not included in the post
|
// Add default false value as a unchecked checkbox is not included in the post
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue