title: Jquery change class CSS on click event
body: <p>Have got code similar to this to work, just cant get it to work with this instance.</p>
  
  <p>Using jquery to change the CSS of the div above the link to hide the subnav (<code>currently stays open because link href="#"</code>).</p>
  
  <p>All links have class of "team" and once any of them are clicked, should change subnav to display="none"</p>
  
  <p>Code is:</p>
  
  <pre><code>$('a.team').click(function() {
      $('.subnav', this).css('display','none'); 
  });
  </code></pre>
  
  <p>jsfiddle: <a href="http://jsfiddle.net/a9AYE/" rel="nofollow">http://jsfiddle.net/a9AYE/</a></p>