Toggle event.preventDefault based on classname
<p>I want to toggle the <code>preventDefault</code> method based on the classname of the link element.</p>

<p><strong>Example:</strong></p>

<pre><code>&lt;a href="#" class="myLink disabled"&gt;My link&lt;/a&gt;

//TO-DO: enable click only when link doesn't have disabled class
$('.myLink').on('click', function() {
    //DO SOME STUFF
});
</code></pre>