I have a simple jQuery selector that selects all links without a class of noValidate. It works great if I only have 1 class on an item however if I add a second class it will no longer find the class. How can I easily check if the class contains noValidate instead of is equal to it.
Current Selector
$("a[class!=noValidate]").click(function() {
//Magic Happens
});
Works on:
<a href="#" class="noValidate">
Fails on
<a href="#" class="noValidate className2">