3 ms·
Still not all selectors that are in jQuery , I think :header is not yet native, not the selectors by attribute value.
by simion314 4y ago
Still not all selectors that are in jQuery , I think :header is not yet native, not the selectors by attribute value.
- robgibbons 4y agoYou can select by attribute value. Even "starts with" selectors eg: document.querySelectorAll('[name^="starts-with-this"]') or "containing" selectors: document.querySelectorAll('[name*="contains-this"]')
- lycos 4y agoI believe querySelector/querySelectorAll supports all native CSS selectors, including attribute selectors. But jQuery does hahve custom selectors as well (at least last I used it, which is over 10 years ago)