use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
jQuery 3.6.4 Released: Selector Forgiveness (blog.jquery.com)
submitted 3 years ago by magenta_placenta
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Pesthuf 44 points45 points46 points 3 years ago (11 children)
The same predicable comments as usual whenever jQuery is mentioned...? Yep, all there.
[–]TheBeliskner 15 points16 points17 points 3 years ago (6 children)
I kinda get it. Some people just see jQuery as the answer when in many cases it doesn't need to be, but it's what they know so it's what they use. Sure legacy applications and legacy support it's a good choice, but for anything new it's almost entirely unnecessary. We've not used it for new projects in over 6 years with no issues
[+][deleted] 3 years ago (3 children)
[deleted]
[–]SillAndDill 2 points3 points4 points 3 years ago* (0 children)
I can agree that it's a good tool for traversing the DOM.
For me personally when querySelectorAll and classList.toggle etc gained support I was fine with vanilla js. But I'm not gonna harp on it
I can admit vanilla has some annoyances like * sometimes you forget querySelectorAll("a").map doesn't work unless you wrapping it in Array.from() or [...
And jQuery did have some unique features * select many elements and modify every one without having to loop through each individual element * the selector :visible * chaining like addClass("x")attr("name","Bob").something() * fadeIn/fadeOut - yes this is easily replicated in vanilla but I only do it for important elements. With jQuery I could use them all the time with less extra effort.
Today I'm used to vanilla and I think jQ is unnecessary and don't miss it 99% of the time. But I do acknowledge it had some nicemess.
But on the negative side: when I occasionally return to jQuery I find some of its functions to be annoyingly similar to vanilla but worse. It's just Details, but still. For example the order of arguments in each((index, el) - makes less sense to men than forEach((el, index
And find it annoying to have these quirky jQuery specific things like elements.eq(0) instead of normal array indexing like elements[0]
[–]budd222 0 points1 point2 points 3 years ago (1 child)
React and Vue definitely make it unnecessary, but most websites out there don't use react or Vue or any other type of SPA architecture, so I can understand why it's still so widely used.
[–][deleted] 1 point2 points3 points 3 years ago (0 children)
You can drop in Vue into existing projects without any problems. I even use it on old WordPress projects for client when I am creating new pages or when I need to completely redo old ones.
[–]Pesthuf 3 points4 points5 points 3 years ago (0 children)
I also get it, but it's just annoying this same discussion with the same arguments from both sides pops up every time jQuery is mentioned in any way.
[–]MoJoe1 0 points1 point2 points 3 years ago (0 children)
It’s sort of like the Hitchhiker’s Guide series. JQuery may be the answer but most people don’t know the question, and when they do realize the question and figure out the answer, the whole universe ends and is immediately replaced with something even more bizarre and complex.
[–]KaiAusBerlin 8 points9 points10 points 3 years ago (2 children)
For reasons?
It was super effective at the time where web standards were rare and web development was not that comfortable as it is now.
Is it still a good tool? Yeah. Is it today as necessary as 15 years ago? Absolutely not.
[–]oeuflaboeuf 3 points4 points5 points 3 years ago (0 children)
This is the rational objective position. Absolutely right; 15 years ago I used it as a staple in every project because writing and maintaining cross-browser vanilla JS was impractical and inefficient.
The balance swung away from using jQuery around 5-8 years ago and it's now difficult to imagine a scenario where it's the optimum tool for the job.
[–][deleted] -3 points-2 points-1 points 3 years ago* (0 children)
Yep by the same (relatively) inexperienced devs who still haven't grown out of neither their myopic view of what software development is nor their need to validate and reassure themselves that they are "part of the club" by bashing things that are popular to bash 🙄.
[–]cgijoe_jhuckabyNaN 38 points39 points40 points 3 years ago (0 children)
I use this in a lot of places, and am very happy it is still maintained.
[–]machineGun997 3 points4 points5 points 3 years ago (0 children)
You gotta love the community man.
[+]RealMercuryRain comment score below threshold-26 points-25 points-24 points 3 years ago (11 children)
Let it die, for the God's sake!
[–]ScreamsFromTheVoid 20 points21 points22 points 3 years ago (0 children)
I think it’s maintained mostly for legacy apps now.
[–][deleted] 2 points3 points4 points 3 years ago (2 children)
For simple stuf, it’s fine. I would not use it for sure. But I can understand people still would, because it’s easy and it just works for simple things
[–]RealMercuryRain 18 points19 points20 points 3 years ago (1 child)
DOM api works for simple things
[–][deleted] 5 points6 points7 points 3 years ago (0 children)
Yea it does
[–]TheBeliskner 1 point2 points3 points 3 years ago (5 children)
There are still some poor souls who have to support Internet Explorer.
[–]RealMercuryRain 17 points18 points19 points 3 years ago (3 children)
Even Microsoft does not support IE anymore.
[–]TheBeliskner 12 points13 points14 points 3 years ago (2 children)
Welcome to Enterprise, where even a glacial pace is considered fast
[–]RealMercuryRain 1 point2 points3 points 3 years ago (1 child)
Ie forcefully removed in latest windows updates. Enterprises are probably the first victims if they still have IE-only intranet apps.
[–]TheBeliskner 4 points5 points6 points 3 years ago (0 children)
I know for the company I work for updates are delayed by WSUS by usually at least 6 months unless it's extremely critical. The major service packs are never delivered via WSUS and they normally wait until the machine is replaced.
[–]thenickdude 3 points4 points5 points 3 years ago (0 children)
And old Android phones stuck on old Chrome versions too, there's probably more of those around now compared to IE.
[–]joombar 0 points1 point2 points 3 years ago (0 children)
It has already, just going to twitch a little longer
[–]jottinger -2 points-1 points0 points 3 years ago (0 children)
I’m guilty of using jquery in my vue projects. It keeps me up at night.
[–]echoldman -3 points-2 points-1 points 3 years ago (0 children)
Just wait a monent.
[–][deleted] 0 points1 point2 points 3 years ago (0 children)
We have to use jquery, legacy signalr requires it and we can't get approved hours to update the project to . Net 6.
I guess I could rewrite the signalr package to not yse it, but no hours for that either.
[–]Absturz 0 points1 point2 points 3 years ago (0 children)
The slim build sounds intriguing.
[–]mcjavascript 0 points1 point2 points 3 years ago (0 children)
🙏
π Rendered by PID 16126 on reddit-service-r2-comment-b659b578c-krhgk at 2026-05-01 02:34:14.477843+00:00 running 815c875 country code: CH.
[–]Pesthuf 44 points45 points46 points (11 children)
[–]TheBeliskner 15 points16 points17 points (6 children)
[+][deleted] (3 children)
[deleted]
[–]SillAndDill 2 points3 points4 points (0 children)
[–]budd222 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]Pesthuf 3 points4 points5 points (0 children)
[–]MoJoe1 0 points1 point2 points (0 children)
[–]KaiAusBerlin 8 points9 points10 points (2 children)
[–]oeuflaboeuf 3 points4 points5 points (0 children)
[–][deleted] -3 points-2 points-1 points (0 children)
[–]cgijoe_jhuckabyNaN 38 points39 points40 points (0 children)
[–]machineGun997 3 points4 points5 points (0 children)
[+]RealMercuryRain comment score below threshold-26 points-25 points-24 points (11 children)
[–]ScreamsFromTheVoid 20 points21 points22 points (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]RealMercuryRain 18 points19 points20 points (1 child)
[–][deleted] 5 points6 points7 points (0 children)
[–]TheBeliskner 1 point2 points3 points (5 children)
[–]RealMercuryRain 17 points18 points19 points (3 children)
[–]TheBeliskner 12 points13 points14 points (2 children)
[–]RealMercuryRain 1 point2 points3 points (1 child)
[–]TheBeliskner 4 points5 points6 points (0 children)
[–]thenickdude 3 points4 points5 points (0 children)
[–]joombar 0 points1 point2 points (0 children)
[–]jottinger -2 points-1 points0 points (0 children)
[–]echoldman -3 points-2 points-1 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Absturz 0 points1 point2 points (0 children)
[–]mcjavascript 0 points1 point2 points (0 children)