Is there an opposite of .find ()?
Where $('.myclass').except('#myid');
Will capture all elements with .myclass, except for the C # myid element. I know what I could do in this example $('.myclass[id=myid]'), but it seems like it would be useful in other cases.
thank
EDIT:
Thanks for answers! Looks like I just missed viewing .not()and :not()documentation.
source
share