jquery.treeselect.js icon indicating copy to clipboard operation
jquery.treeselect.js copied to clipboard

How to set some values as checked on loading

Open prakashpranion opened this issue 9 years ago • 2 comments

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

prakashpranion avatar Jun 17 '15 13:06 prakashpranion

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 ?

alexiswbr avatar Feb 06 '17 10:02 alexiswbr

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);

landbird111 avatar Jun 07 '17 05:06 landbird111