title: jQuery removeClass on parent/sibling/child
body: <p>I am using the following jQuery to change classes on elements in an unordered list.  It doesn't seem like it is the most effective way of achieving the effect.  Is there a better way to write this?</p>
  
  <pre><code>$(function() {
      $('nav li a').click( function() {
          $(this).parent().siblings().children().removeClass('active');
          $(this).addClass('active');
      });
  });
  </code></pre>
  
  <p>Thanks</p>
  
  <p>S</p>