How can i access children using parent id
<p>I have this structure of html. To present the list of two different sets. and i must handle the click event differently.</p>

<pre><code>&lt;div id='nodelist1'&gt;
&lt;ul&gt;
 &lt;li class='nodeelem'&gt;first node
    &lt;ul&gt;
      &lt;li class='nodeelem'&gt;second node
         &lt;ul&gt;
           &lt;li class='nodeelem'&gt;third node&lt;/li&gt;
         &lt;/ul&gt;
      &lt;/li&gt;
     &lt;/ul&gt;
   &lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;


&lt;div id='nodelist2'&gt;
&lt;ul&gt;
 &lt;li class='nodeelem'&gt;first node
    &lt;ul&gt;
      &lt;li class='nodeelem'&gt;second node
         &lt;ul&gt;
           &lt;li class='nodeelem'&gt;third node&lt;/li&gt;
         &lt;/ul&gt;
      &lt;/li&gt;
     &lt;/ul&gt;
   &lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<p>I have to access the nodes using div id</p>

<pre><code>$('#nodelist1 li.nodeelem').click(handler);
$('#nodelist2 li.nodeelem').click(handler2);
</code></pre>

<p>Is this rightway to access children clicks???</p>
