tunpishuang tunpishuang - 2 years ago 252
Javascript Question

can jsTree use radio check

i know there is a plugin for jsTree named jquery.tree.checkbox.js.
that make the tree node multi checkable.

i just wondered if there is a plugin to raido check the tree node?
or how can i modify jquery.tree.checkbox.js to achieve that?

Answer Source

This can simply be done by adding the attribute

    rules:{
            multiple : false
          } 

Inside the configuration of the tree. This will make it impossible to choose multiple entries.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download