I need to show some text when a user clicks a link, and then remove the link after it has been clicked.
Example here: http://jsfiddle.net/HCAfz/2/
How do I remove the link that was clicked from the page and keep the behavior above, with the hidden div being shown?
To completely remove the link do:
To hide the link do:
Note that I do
return false;in stead ofevent.preventDefault();andevent.stopPropagation();since it is the same