Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Ugh... Just to think of it makes me sweat
@Torbuntu Very true :)
@TerriToniAX First of all, I didn't mean to be rude. If jQuery gets the job done for you, then use jQuery. But, since you asked, I'd say: most uses of jQuery are DOM nodes selection, class & attributes manipulation, Ajax calls & animations.
When I was using jQuery, a couple of years ago, I thought $ saved me a lot of time and keystrokes, but in fact, it didn't.
+For DOM selection:
$(selector) can be replaced by document.querySelector(selector) or document.querySelectorAll(selector)
+For class & attr. manipulation:
$node.addClass('class') is the same as node.classList.add('class')
$node.attr('id', 'newId') is equal to node.id = newId
$node.is(':checked') equals node.checked
+For Ajax: Take a look at: https://blog.garstasio.com/you-dont...
+$.animate() can be replaced by CSS animations + proper class manipulation.
Also, even if you don't want to overkill things with Angular or React, take a look at Vue.js https://vuejs.org/v2/guide/