Jquery Dynatree plugin using clicks in id
<p>Using Firebug I have found that the Dynatree plugin changes the following code:</p>

<pre><code>&lt;li id="id3.1" class="expanded"&gt;Menu 1
  &lt;ul&gt;
        &lt;li id="id3.1.1"&gt;Sub-menu 1&lt;/li&gt;
  &lt;/ul&gt;
&lt;/li&gt;
</code></pre>

<p>To this:</p>

<pre><code>&lt;li class=""&gt;
   &lt;span class="dynatree-node dynatree-exp-c dynatree-ico-c"&gt;
   &lt;span class="dynatree-connector"&gt;&lt;/span&gt;
   &lt;span class="dynatree-icon"&gt;&lt;/span&gt;
      &lt;a class="dynatree-title" href="#"&gt;Sub-menu 1&lt;/a&gt;
   &lt;/span&gt;
&lt;/li&gt;
</code></pre>

<p>So when I try to make a click event on the <code>id="id3.1.1"</code> nothing happens because this id doesn't exist anymore.</p>

<p>I made a search here and found the <code>onActivate</code> option that will make my click happen on the menu:</p>

<pre><code>$("#treeMenu").dynatree({
    onActivate: function(node){
        var menuTitle = node.data.title;
        alert(menuTitle);
    }
});
</code></pre>

<p>My question: Is this the only way to do the click event using Dynatree?</p>
