News for hackers. Stuff that matters.
Re:You might not need jQuery (2014) by realityking on Thursday January 14, 2021 @04:41AM (#25774238)
This is good example of how browser APIs have gotten better:

// Edge 12 document.querySelector('.class').remove();

// Edge 17 document.querySelector('.class').after(...);

Where jQuery shines - but also hides a lot of complexity- is when operating on an array of elements, e.g. if you want to remove all elements with a certain class.

There are no comments on this comment yet.