I have a jQuery selector with following syntax:
$('input[type=image]').not('.xyzClass').click(function{
//some functionality
});
So this puts a specific click functionality for all the components which are of type image and does not have class xyzClass
.
*****I have modified the question to reflect latest changes, some of the answers below are correct for previous version but may not hold correct for modified version. Apologies for that.
We need an OR condition with class condition. Such that Any component which is "input" having type as image, should be selected IF
- class is not
xyzClass
OR - id contains string
someIdString
Could you please help with the modification in existing selector?
Cheers.