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')
2.1m questions
2.1m answers
60 comments
57.0k users