title: jQuery If/Else If not working
body: <p>I have this code:</p>
  
  <pre><code>$("#Editing").click(function(){
    if ($(this).attr("class","OptionsOpt-On")) 
      {$(this).attr("class","OptionsOpt-Off"); Edit = false;}
  
    else if ($(this).attr("class","OptionsOpt-Off")) 
      {$(this).attr("class","OptionsOpt-On"); Edit = true;}
  });
  </code></pre>
  
  <p>I have searched and haven't been able to find a similar answer because all the ones that I found had problems with the code that I have identified to not be in my code. I don't know why the "else if" doesn't work, but if I change it to an if, it works just fine...</p>