Start Blog Projects
DE

# dom

See all tags

german dom javascript

JS: Hide an element when clicking on somewhere else

2017-05-08

Hint: I used the functions removeClass() and addClass() to make things easier. You can find them on

Read full article


german dom helper javascript

JavaScript "hasClass()", "addClass()", "removeClass()" helper functions

2017-05-08

If you're like me and come from jQuery to pure JavaScript, these helper functions might be very helpful for you: function hasClass(el, className) { if (el.classList) return el.classList.cont...

Read full article


Development Contact Imprint Privacy policy
Mastodon Bluesky Twitter (DE) Twitter (EN)
GitHub Behance Instagram YouTube

Copyright 2022- 2025 by LGK. All rights reserved.
HK Grotesk font licensed SIL. Bootstrap and Bootstrap Icons licensed MIT. Built with 11ty.