Last active
April 19, 2020 21:14
-
-
Save attibalazs/78c6968f9cbb76f79701 to your computer and use it in GitHub Desktop.
jstree get_type example - Jstree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
$('#jstree').on("select_node.jstree", function (e, data) { | |
switch (data.node.type) { | |
case "country": | |
alert("country"); | |
break; | |
case "region": | |
alert("region"); | |
break; | |
} | |
}); |
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
type or node maybe is undefined