I want to toggle the preventDefault
method based on the classname of the link element.
Example:
<a href="#" class="myLink disabled">My link</a>
//TO-DO: enable click only when link doesn't have disabled class
$('.myLink').on('click', function() {
//DO SOME STUFF
});