Hi all, could someone tell me how to change the text of a link when its clicked?
I use this code as a show/hide
// hides the slickbox as soon as the DOM is ready
// (a little sooner than page load)
// toggles the slickbox on clicking the noted link
And this is the markup...
<a id="slickbox-toggle" href="#">Show box</a>
<div id="slickbox">Content goes here.</div>
So what I want to happen is when you click "show box" and the box is revealed, the text then changes to "hide box" and back again if the box is hidden again. I've seen it done loads but can't find it in a tutorial!
Hope someone can help