I need to retrieve the id of the node when unchecked. On form submit the below code returns all the id of the selected node
checkbox: {
real_checkboxes: true,
two_state: true,
real_checkboxes_names: function (n) {
return [("check_" + (n[0].id)), n[0].id]
}
}
But for my need i need the id when the node is unchecked like
}).bind('uncheck_node.jstree',function(e,data){
{
var a=$(e).attr('id');
alert(a);
}
});
.bind("change_state.jstree", function (e, data) {
if (data.args[1] == true) {
var a = $(data.rslt).attr('id');
alert(a);
}
})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With