Jquery toggle a link to navigate to anchor tag
I am trying to use jquery to toggle a link to navigate to a specified anchor tag. Right now the link works as a toggle, but when you navigate to a different page or back to the original page the link reverts to the normal state. Below is a sample of my code. If you can help me understand what I am doing wrong I would be grateful.