'Javascript: selecting all elements that have a specific font-size or font-weight
in JavaScript, is there a way to select all elements that have a specific style, like a font size or font weight or color without using class or ID?
Solution 1:[1]
You could select all elements (querySelector("*")) then loop over the results testing the computedStyle.
Far from efficient, but the only way I can think of.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Quentin |
