Why jQuery 4 is a good reminder to stop using jQuery – LogRocket Blog
// jQuery: const elms = $('.items input[type=checkbox]:checked'); console.log(elms.toArray()); // Native: const elms = document.querySelectorAll('.items input[type=checkbox]:checked'); console.log(elms); Result: Selecting DOM elements with CSS queries using jQuery and native web APIs jQuery offers the closest() method to traverse back and find a...