Created
July 2, 2022 14:01
-
-
Save qubodup/5baab560f4222adeccc7c00c162612da to your computer and use it in GitHub Desktop.
Get all elements without ANY class or id. then use :not([id]) or :not([class]) or div:not([id]):not([class]) to dominate it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('div').each(function() { | |
if (!(this.hasAttribute('class') || this.hasAttribute('id'))) { | |
console.log("OMGvvv"); | |
console.log(this); | |
console.log("OMG^^^"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment