title: Jquery - ignore event if div has particular class?
body: <p>Quick question - but I wondered what is the neatest way to achieve the following - 
  I have this script - </p>
  
  <pre><code> $('.trebBtn div').live('tap',function(event) {
     $('.trebBtn div').removeClass('selected');
     $(this).addClass('selected');
  
  });
  </code></pre>
  
  <p>It basically just switches states on a number of separate divs that are wrapped with the .trebBtn div.</p>
  
  <p>This works well - but I dont want anything to happen when the last contained div is clicked.  This has a class of .search - is there any way that the above instructions can be ignored when clicking on this div only?</p>
  
  <p>Cheers
  Paul</p>