jquery switch click class picture change
<pre><code>&lt;tab&gt;
&lt;div class="switchLeft"&gt;&lt;/div&gt;


.switchLeft
{

}

.switchRight
{

}



js code

 $("div.switchLeft").click(function () {

          if (className == "switchRight") {
            $(this).removeClass("switchRight");
            $(this).addClass("switchLeft");

        }

        else if (className == "switchLeft") {
            $(this).removeClass("switchRight");
            $(this).addClass("switchRight");
            break;

        }

    });
</code></pre>

<p></p>

<p>but   else if here in after,switch is working again and switchRight removing
 thank you</p>
