title: how to find element in div which has Class and is NOT this in jquery
body: <p>I'm trying to find an element in div called <code>wrapper</code> which has a class of <code>active</code> but is not the one I've just clicked.</p>
  
  <p>Here is my code which works if I click on the <code>.title</code> class:</p>
  
  <pre><code>
  $(".title").click(function(){
      if ($("#wrapper ul li").hasClass("active")) {
          alert("found one!");
      }
  });
  </code></pre>
  
  <p>But i have no idea how to check if its not the one I've clicked. I tried adding <code>.not(this)</code> and <code>.not($(this))</code> to my if statement to no avail. </p>
  
  <p>I should add i plan to <code>removeClass</code> of any that are not the current selected div.</p>
  
  <p>I'm sure I have something wrong somewhere.</p>
  
  <p>for reference heres the HTML:</p>
  
  <pre><code>&lt;div id="wrapper"&gt;
      &lt;ul&gt;
          &lt;div class="title"&gt;Title&lt;/div&gt;
          &lt;li class="active"&gt;Active Clicked List Item&lt;/li&gt;
      &lt;/ul&gt;
      &lt;ul&gt;
          &lt;div class="title"&gt;Title&lt;/div&gt;
          &lt;li&gt;Some Other List Item&lt;/li&gt;
      &lt;/ul&gt;
      &lt;ul&gt;
          &lt;div class="title"&gt;Title&lt;/div&gt;
          &lt;li&gt;Some Other List Item&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Any Suggestions on how I can do this?</p>