title: jQuery Selector Problem (All Children inside Div)
body: <p>I'm trying to attach a click function that adds a CSS class to <strong>all</strong> anchor tags inside of a specific div. Somehow I can't get jQuery to do this (no JS error either).</p>
  
  <p>The div:</p>
  
  <p><code></p>
  
  <pre><code>&lt;div id="better"&gt;
      &lt;a href="1.aspx"&gt;One&lt;/a&gt;
      &lt;a href="2.aspx"&gt;Two&lt;/a&gt;
      &lt;a href="3.aspx"&gt;Three&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></code></p>
  
  <p>My jQuery code (inside of $(document).ready):</p>
  
  <p><code></p>
  
  <pre><code> $("#better &gt; a").click(function() { $(this).addClass('active'); });
  </code></pre>
  
  <p></code></p>
  
  <p>I added an alert in my click function to see if it fires, but nothing happens. As I wrote above, I don't get JavaScript errors in the FF error console either.</p>
  
  <p>Help?</p>
  
  <p><strong>Edit: This is just example code.</strong> Yes it doesn't make sense to change a class when you redirect. I've just simplified my code to the core of what I'm trying to do. :)</p>