You don't need JQuery
Time to retire good ol' JQuery.
What's with JQuery?
The idea behind this library is writing less code to perform some tasks, such as styling elements dynamically, playing animations via script, fetching data, etc.
Don't get me wrong now. JQuery is a great library, and I personally use it at work. However, for most things, you presumably don't need to use it.
Every dependency on any project of yours has its impact on performances, loading times, and even security. Choosing the best solution for you will boost your productivity.
class = "example".
I will not cover all methods with JS, as you could also retrive an element(s) by its tag name for example. You can find more about that on here, for example.
As you can see, especially with
document.querySelector() it's quite easy to retrive an element. You can also use this specific method to retrive elements according on any type of property, such as id, tag name, etc.
Some final considerations
Also, a little advice, don't overthink it. It won't make decisions easier.