Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jstree get not disabled nodes

$(document).on('click', '#users_perm_save', function (event) {
   var result = $('#jstree').jstree('get_selected',true); 
  var checkedNodes = result.filter((node)=>{
    return node.state.disabled==false
  }).map((checked)=>{
    return checked.id
  });
   console.log(checkedNodes);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jstree #disabled #nodes
ADD COMMENT
Topic
Name
1+4 =