I have a jQuery selector with the following syntax:
$('input[type=image]').not('.xyzClass').click(function{
Thus, this creates certain functionality for all components that have an image type and do not have the xyzClass class.
***** I modified the question to reflect the latest changes, some of the answers below are correct for the previous version, but may not correspond to the correct version. I apologize for that.
We need an OR condition with a class condition. Such that Any component that is βinputβ of type as image must be selected IF
- class is not
xyzClass OR - id contains the string
someIdString
Could you help with modifying an existing selector?
Greetings.
jquery css-selectors
Priyank
source share