How to add multiple words in a jQuery contains selector?
The following doesn't work.
let selector = `button:not(:contains('Following', 'Requested'))`;
Thank you
How to add multiple words in a jQuery contains selector?
The following doesn't work.
let selector = `button:not(:contains('Following', 'Requested'))`;
Thank you
You don't told us if you want both of words (logical AND) or any of words (logical OR). So I answer for both cases.
In jQuery selectors logical AND is: :contains(...):contains(...)
, and logical OR is: :contains(...), :contains(...)
.