Fork me on GitHub

Examples

Try it yourself…

Quick start (look in console)

Alternative values; "Good", "Maybe", "Bad"

Current value returned by $.val():

Set state by method calls

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