call jsTree inside jquery -
first,i novice programmer in jquery. want make tree structure out of unordered list in html.i came across jstree can used it.so,i wrote code:
<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title>insert title here</title> <script type="text/javascript" src="js/jquery-1.7.2.js"></script> <script type="text/javascript" src="js/jquery.jstree.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#filelister").jstree(); }); </script> </head> <body> <div id="filelister"> <ul> <li><a>folder a</a> <ul> <li><a>child 1</a> <ul> <li><a>child a</a> </li> <li><a>child b</a> </li> <li><a>child c</a> </li> </ul></li> <li><a>child 2</a> <ul> <li><a>child d</a> </li> </ul></li> </ul></li> </ul> </div> </body> </html> but not printing in folder tree strucutre..rather folder printed , nothing apart on web page.
Comments
Post a Comment