I did like to enable or disable only the checkbox of a node using javascript? How can I do this.
Thanks
with the help of the nodeID retrieved from NodeChecked event and jquery I was able to enable/disable the checkbox. One could as well use javascript to do the same.
the jquery selector would be something like:
nodeId > input:checkbox
Hello
. You can use the JS code and client side event NodeChecked. Please take a look at the sample code below:
JS code: <script type="text/javascript"> function Check(treeID, nodeID, state) { var node = igtree_getNodeById(nodeID); node.setEnabled(false); }</script>
Hope this helps.