Binding a Treeview in contextmenu-Revisited
<pre><code>function initTrees() {
   $("#mixed").treeview({
      url: "source.php",
   });
}
$(document).ready( function() {
   initTrees();
   $("#myList UL LI").contextMenu({
      menu: 'myMenu'
      }, function(asd,asd ,asd ) {
   });
});

&lt;body&gt;
&lt;div id="myList"&gt;
&lt;ul&gt;
    &lt;li&gt;Item 1&lt;/li&gt;
    &lt;li&gt;Item 2&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
    &lt;ul id="myMenu" class="contextMenu"&gt;
        &lt;ul id="mixed"&gt;
            &lt;li&gt;&lt;span&gt;Event 1&lt;/span&gt;
                &lt;ul&gt;
                    &lt;li&gt;&lt;span&gt;Event 1.1&lt;/span&gt;
                        &lt;ul&gt;
                            &lt;li&gt;&lt;span&gt;Event 1.1.1&lt;/span&gt;&lt;/li&gt;
                        &lt;/ul&gt;
                    &lt;/li&gt;
                    &lt;li&gt;&lt;span&gt;Event 1.2&lt;/span&gt;&lt;/li&gt;
                &lt;/ul&gt;
            &lt;/li&gt;
            &lt;li id="36" class="hasChildren"&gt; &lt;span&gt;Event 2&lt;/span&gt; &lt;/li&gt;
            &lt;li&gt; &lt;span&gt;Event 3Party&lt;/span&gt; &lt;/li&gt;
        &lt;/ul&gt;
    &lt;/ul&gt;
&lt;/body&gt;
</code></pre>

<p>Hey guys, This code gives a treeview inside a context menu. But whenever I click on any treeview item, the context menu is hiding. How do I make it to hide only on specific clicked items and not hide on all?</p>
