jquery.treeselect.js
jquery.treeselect.js copied to clipboard
How to set some values as checked on loading
I want to pre-select some fields (last children level) and mark it as checked while loading the list.Is it possible to do this.If So kindly exaplain how to do this
Did you found any solution ? I am trying too but nothing seems to works. I tried to set the checked parameter to true, but the input's node it not checked, and even when I set it inside the onbuild callback
@travist Am I missing something ?
share my solution. when this plugin is loaded(in document.ready section),
setTimeout(function () {
["103","value1","balahbala"].forEach(function (item) {
$("#treeview1").find("li > input[type=checkbox][value='" + item + "']").click();
}, this);
}, 1000);