Click to change between checked, unchecked and indeterminate states!
Examples
Try it yourself…
Quick start (look in console)
Alternative values; "Good", "Maybe", "Bad"
Current value returned by
$.val()
:
Set state by method calls
set checked
set unchecked
set indeterminate
jQuery click
JS click
HTML expando attributes for values (1/0/?)
Current value returned by
$.val()
:
Unittest
jQuery.tristate comes with a complete set of QUnit-based unittests.
Click here to run the tests in a new window:
Unittests