jQuery form post converts boolean checkboxes to “on” and “off”?

The problem is that your checkboxes do not have value attributes. When jQuery serializes the form, it uses ‘on’ as the default value.

You should give your checkbox a value:

<input type="checkbox" name="CheckboxValue" value="true" />

See example here: http://jsfiddle.net/U6Sbw/1/

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)