I’m trying to have a button for comments in which you will press the first button, It will then change to the mouseover colour and show the “add comment” button. Then when the user clicks the comment button again it will go back to the “unhover” state and hide the “add comment” button.
Thanks for your help, Hope it’s not to badly worded to understand.
Just check
if(showing == 0)condition inside thehoverfirst handler. But instead of using a global variable you can check the visibility of the add comment button. Try thisDemo