9.5.4 Boolean (std_boolean)

The Boolean weblet represents boolean values. The weblet generates an <input type="checkbox"> element in the HTML source which jQuery Mobile then converts into a sliding switch.

The Boolean weblet is the default weblet for boolean fields but it can also be used with any field that has only two valid values (for example: Sex) by configuring the trueValue and falseValue properties appropriately.