+ Start a Discussion
RishavRishav 

visualforce with JQTree plugins

Hi,
      I am trying to use jqTree with visualforce page for creating the tree list view. But i am not getting anything, i tested my jQuery it's working.
    Here is my code please tell me what mistakes  i doing
<apex:page standardStylesheets="false" showHeader="false">
  <apex:includeScript value="{!$Resource.jqTree}"/>
  <apex:includeScript value="{!$Resource.jquery}"/>
  <apex:includeScript value="{!$Resource.jqTreeCss}"/>
  <apex:includeScript value="{!$Resource.jqTreeData}"/>
    <script>
     $j = jQuery.noConflict();
     var data = [
    {
        label: 'node1',
        children: [
            { label: 'child1' },
            { label: 'child2' }
        ]
    },
    {
        label: 'node2',
        children: [
            { label: 'child3' }
        ]
    }
];
   $j(document).ready(function(){
  
  
  
     
   $j("[id$=tree1]").tree({
        data: data
    });
   });
  </script>
  
  <div id="tree1">
  hii
  </div>
</apex:page>
I tried with static JSON resources also but not working.
Can anyone tell me what mistakes i am doing here.

Thanks
Rishav