This commit is contained in:
Ziver Koc 2017-04-01 00:20:17 +02:00
parent 9bd7ca9d6c
commit fe6ce790a6

View file

@ -36,6 +36,7 @@
return this.name.toLowerCase() == fieldName;
});
if (input.attr("type") == "checkbox") { // special handling for checkboxes
input.attr("value", "true");
if (value=="true") input.attr("checked", "true");
else input.removeAttr("checked");
// Add default false value as a unchecked checkbox is not included in the post