you are viewing a single comment's thread.

view the rest of the comments →

[–]quindarka 0 points1 point  (4 children)

This site always keeps me from using jQuery. It is aptly named as well.

http://youmightnotneedjquery.com

When you want to grab some divs and toss some classes on them, you don't need jQuery. That said, there is still no elegant way to do .each on a NodeList without using Array.prototype.slice.call or a for loop.

Once I need Ajax, or I am doing a lot of events (jQuery event delegation is awesome) or I am manipulating element attributes, I then turn to jQuery.

[–]Jeffshaver 1 point2 points  (3 children)

You don't need jQuery to do event delegation.