Re:jQuery 4.1.0
by chuckadams on Tuesday November 17, 2026 @05:36PM
(#50539272)
jQuery predates that syntax, but have fun chaining that even now.
[ Parent
| on HN ]
jQuery had a lot of reasons for existing. And now it has less than it used to. I believe that was the point.
You'd probably usually chain that inside the callback. Instead of addClass('foo').hide(), you'd do el.classList.add('foo'); el.hidden = true; or something. It's not 1:1, but also it's not really that big a deal.