Skip to content

Instantly share code, notes, and snippets.

View jafman's full-sized avatar
🏠
Working from home

Jafar Kamarudeen jafman

🏠
Working from home
View GitHub Profile
@puiutucutu
puiutucutu / data-attributes.js
Last active August 7, 2025 10:36
Javascript querySelectorAll for data-attributes
document.querySelectorAll('[data-js]')
// will get you all elements with this attribute.
document.querySelectorAll('[data-js="someFooElement"]')