I need to toggle the text from "Login or Signup" to "X" when it is made to slide down and return to old text when it is clicked again. How can I do that?
I added this JS Code but it doesn't work. Can anyone help here?
var text = $(this).text();
if(text == "X")
$(this).text("Login Or Sign Up");