I have an anchor link that I want to disable once the user clicks on it. Or, remove the anchor tag from around the text, but definitely keep the text.
The easyest way
In your html:
xxxxx
In your js:
$('#foo').attr("disabled", false);
If you use it as attribute works perfectly