onclick simple function with jQuery
<p>I'm trying to create simple function that will work two ways. Basically, when I click on <code>.slideme</code> once it will add a class, and when I click second time it will remove that class.</p>

<p>I have this:</p>

<pre><code> $(".slideme").click(function() {
     $('#login').addClass("green");
   },function(){
     $('#login').removeClass("green");
   });
</code></pre>

<p>Unfortunately it works only half way; when I click the second time nothing happens.</p>

<p>How can I solve this please?</p>
