blog.davidvassallo.me
A JavaScript reverse CSS selector
In plain Javascript, you can get a reference to a particular HTML element by using the querySelector method. For example: document.querySelector(‘div’) Will give you a reference to the …