Answers for "how to exclude a specefic tagname from a javascript query search"

2

how to exclude a specefic tagname from a javascript query search

var elems = document.querySelectorAll("body > *:not()");
//tag will go inside the not function like so:
var elems = document.querySelectorAll("body > *:not(img)");
Posted by: Guest on October-10-2020

Code answers related to "how to exclude a specefic tagname from a javascript query search"

Code answers related to "Javascript"

Browse Popular Code Answers by Language