suggest me some sample codes to activate and deactivate a hyperlink on clicking it.
i tried some of these, but no result
1) $("a#click").onclick = function() { return false; }
2) $("a#click").attr ('href', '#');
3) $(#document).ready(function(){ $("#disabled a").click(function () { $(this).fadeTo("fast", .5).removeAttr("href"); }); });
so, please suggest some other code