Silly question. A lot of examples using jstree that I find on the web use the syntax $(‘#someTreeId’).tree(), whereas the demo on the jstree website keeps referring to the syntax $(‘#someTreeId’).jstree().
When I use .jstree() I get a browser error saying this is not a function. But when I use .tree I barely get any farther: it only gets to ‘Loading…’.
So far I haven’t included any options at all inside the function brackets. I was assuming jstree would produce a basic tree if I included the UL in the HTML. But it doesn’t.
May be use this trick to find the exact function names of jstree plugin.
Open jquery.jstree.js, check for the keyword “$.fn.* =” or “jQuery.fn.* = ” or “jQuery.* =” or “$.*=”
The ‘*’ will be the function names.
Not to complicate, in jstree plugin the function name is jstree(). The error not a function is because, the plugin is not loaded. Check if the script path to jstree.js is correct.