I have a jQuery selector with following syntax:
$(\'input[type=image]\').not(\'.xyzClass\').click(function{
//some functionality
});
So
$(":image:not(.xyzClass),:image[onclick*='someSpecificFunctionality']");
Updated answer
$('*:not(.xyzClass)[id*=containsThisValue]')
For your updated question, though this isn't optimized I would recommend specifying as much as you can.
Original answer:
function someSpecificFunctionality() {
}
$(els)
.click(someSpecificFunctionality)
.data('someSpecificFunctionality', true)
$(els).filter(function() {
return
$(this).not('.xyzClass') &&
$(this).data('someSpecificFunctionality') == true
});
to do an "OR" use a comma:
$('input[type=image]')
.not(".xyzClass,[onclick*='someSpecificFunctionality()']")
.click(...);
I'm not sure how you're defining the onclick though: is it in your HTML or is added programmatically?