Skip to content

Instantly share code, notes, and snippets.

@attibalazs
Last active April 19, 2020 21:14
Show Gist options
  • Save attibalazs/78c6968f9cbb76f79701 to your computer and use it in GitHub Desktop.
Save attibalazs/78c6968f9cbb76f79701 to your computer and use it in GitHub Desktop.
jstree get_type example - Jstree
$(function () {
$('#jstree').on("select_node.jstree", function (e, data) {
switch (data.node.type) {
case "country":
alert("country");
break;
case "region":
alert("region");
break;
}
});
@santarinto
Copy link

type or node maybe is undefined

@AmmarSaleh45
Copy link

How to do the same on Double Click?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment