Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

js Tree error for function .jstree() [closed]

I am implementing a jstree in mvc4, but when I run my application no tree view is displayed. I have tried to track the error with Firebug and found the following error:

"TypeError: $(...).jstree is not a function $("#divtree").jstree();"
like image 313
Monika D Avatar asked Apr 04 '13 13:04

Monika D


1 Answers

Follow the guide on https://github.com/vakata/jstree

<script src="/path/to/jstree.min.js"></script>
<script>
    jQuery(function($) {
         ("#divtree").jstree();
    });
</script>
like image 118
Nix Avatar answered Nov 03 '22 09:11

Nix