you can use the native methods document.querySelector and document.querySelectorAll that respectively return the first or all the elements that match the CSS query selector you provide. It works almost identically to jQuery (there are some limitations when using pseudo-selectors though).
you can use the native methods
document.querySelector
anddocument.querySelectorAll
that respectively return the first or all the elements that match the CSS query selector you provide. It works almost identically to jQuery (there are some limitations when using pseudo-selectors though).developer.mozilla.org/en-US/docs/W...
As they are Element methods, they can be used not only on document but on any Element to find their children
Some people even declare some shortcuts to access these methods quickly: