Skip to content

A plugin that allows for checkboxes in nested lists to receive indeterminate state

Notifications You must be signed in to change notification settings

Rodel30/jQuery-Tristate-Checkbox-plugin

 
 

Repository files navigation

jquery.tristate.js is a jquery plugin for adding "tristate" indeterminate functionality to checkboxes in nested lists. 

To use it, simply call it on your parent list:
$('ul.tristate').tristate();

By default, the inputs must be direct descendants of the list elements. You may optionally pass in an array of wrappers that represents the tree of elements the inputs are nested within, e.g.:
$('ul.tristate').tristate({wrappers:['span.classname','label']});

Example available here:
http://jlbruno.github.com/jQuery-Tristate-Checkbox-plugin/

About

A plugin that allows for checkboxes in nested lists to receive indeterminate state

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%