My jstree function is here. I set 'select_limit' : 3 but it does not work. when I start, I can select more than three nodes, but I need to select no more than three nodes.
j1("#utree_activity").jstree({ "plugins": ["themes", "html_data", "ui", "crrm", "checkbox"], "html_data": { "ajax": { "url": urlGlobal + "jstrees/activitytree/", "asynchronous": "false", "data": function (n) { return { id: n.attr ? n.attr("id") : 0, default_activities: default_activities }; }, "success": function (gb) { }, } }, "ui": { "select_limit": 3, }, "cookies": { cookie_options: { path: "/" } }, "checkbox": { two_state: true, real_checkboxes: false } });
RavatSinh Sisodiya
source share