Hey folks. I am trying to set up a page where if you click on a link the class will change. One step further this would have to be stored in a cookie. Each A tag has a unique id.
For example, below is my example link:
<a href="#" id="unique1" class="up">Link text</a>
When a user clicks the link then the class would need to be changed to "down" AND a cookie would have to be stored for one week remembering this click. Any future visits to that page then would have to refer to the cookie and set the class accordingly if the link was previously clicked.
My knowledge on javascript and jQuery is minimal.. this is just above my head. Any suggestion on how to make this work?