title: jQuery live function and add/remove class
body: <p>I'm using jquery 1.5 and I'm having an issue with the add and remove class function . Below is my code. </p>
  
  <p>I'm creating a navigation with a normal, hover, and active state. The active state I want to add and remove the class.</p>
  
  <pre><code>  $(".class").hover(function(){
            $(this).css("background-color", "#666).css("color", "yellow");
      ), function(){ 
           $(this).css("background-img", url(image).css("color","#fff");
      ).live('click', function(){
             if($("ul.me li").hasClass("current")){
               $("ul.me li").removeClass("current");
                  $(this).addClass("current");
               }
          });
  
  
  &lt;ul class="me"&gt;
     &lt;li class="current"&gt; item1 &lt;/li&gt;
     &lt;li&gt; item1 &lt;/li&gt;
     &lt;li&gt; item1 &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>Did I bind this on correctly?</p>