I have a HTML web page. The left side bar has come links for navigation.
The logic is that at the very beginning, most of those links (<a> tags) are supposed to be disabled.
Only after user finishes some operations inside the web page, those links are enabled.
So how can I achieve that? How can I disable <a>s first, then re-enable them later?
disable the functionality be replacing the href with some no-op like
href="javascript:;"and adding the real stuff later.Or add a handler which supresses the default event (with
return false;or jQuerys.preventDefault()).