Always return checkbox values on submitted forms.
- Easy to use; just add an expando attribute off="".
- Maintains attributes and look of checkbox.
- Handles change events.
- Handles form resets.
Implicit, returning specified string when unchecked.
-
Create a normal checkbox but add an off="string" attribute.
Some old browsers may reject the extra attributes.
Explicit, submit empty string when unchecked
- Create a normal checkbox.
- Call $().checkboxfix() on the checkbox.
Explicit, submit specified string when unchecked
- Create a normal checkbox.
- Call $().checkboxfix('string') on the checkbox.