remove class jquery
<p>I am having two div tags . i like to add class on click event for current div  .
But after that, when i click second div , both the div has the class.
how to remove class for previous div?</p>

<pre><code>&lt;div title="a1"&gt;&lt;/div&gt;

&lt;div title="a1"&gt;&lt;/div&gt;

$('[title:a1]').click(function() {

   $(this).addClass('current');

}); 
</code></pre>

<p>where should i wright remove class ?</p>
