I have this 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;}
});
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...