Selecting div withing another container w jQuery
<p>I have a container that has other divs in it. I need to be able to click only the ones that have "clickMe" class in them.</p>

<pre><code>&lt;div id="hiddenDiv"&gt;
  &lt;div id="val1" class="clickMe"&gt;Straight&lt;/div&gt;
  &lt;div id="val2"&gt;Left&lt;/div&gt;
  &lt;div id="somthElse" class="clickMe"&gt;Right&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>It looks quite straight-forward but it does not work for me...</p>

<pre><code>$("#hiddenDiv div.clickMe").click(function(){
      ...
}
</code></pre>

<p>What am I missing?</p>

<hr>

<p>UPDATE:</p>

<p>Not sure what it was, but changing to <code>$("#hiddenDiv div.clickMe").live("click", function(){</code> fixed it.</p>
