How to toggle the text in Login bar handle?

Status
Not open for further replies.

John Mckanzie

New member
First of all, i don't know where to post this, since I am not allowed in other forums and I work for a Xenforo Client to update the CSS code for him. Here is my question -

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?

$(function(){
$("a.concealed").click(function(){
var text = $(this).text();
if(text == "X")
{
$(this).text("Login Or Sign Up");
}
else
{
$(this).text("X");
}
});
});
 
Status
Not open for further replies.
Top