|
|
|
|
|
by bijection
3107 days ago
|
|
To make that work for all elements of that class, you could rewrite it as document.querySelectorAll('.myclass')
.forEach(el => el.style.display = 'block')
The jQuery is still shorter, but the vanilla js is definitely manageable. |
|