Building on the Quick Start example, you can add check boxes to your tree nodes using the showCheckBoxes option. In addition to the usual checked and unchecked states, you can allow a third state, indeterminate, that shows a square in a parent item's checkbox when there is a mix of states for related child items. To enable this, set the allowTriState option to true.
Drop down and copy script to paste in <head> section
Script |
Copy Code |
---|---|
<script id="scriptInit" type="text/javascript"> $(document).ready(function () { $("#tree").wijtree({ showCheckBoxes: true, allowTriState: true }); }); </script> |