I have some links displayed on a page. I would like to enable/disable them based on other events on the page. Is there a way to do this with jQuery?
$('selector_for_links_to_disable').bind('click', function(e){ e.preventDefault(); })
and for enabling:
$('selector_for_links_to_enable').unbind('click')
1.4m articles
1.4m replys
5 comments
57.0k users