Hi, i want to select all h1 tags except myclass with jQuery. For example i want select < h1> but i don't want to select < h1 class="myclass">
Thanks
Hi, i want to select all h1 tags except myclass with jQuery. For example i want select < h1> but i don't want to select < h1 class="myclass">
Thanks
Try the :not()
selector or not
method:
$("h1:not(.myclass)")
$("h1").not(".myclass")