jQuery Event Delegation allows us to attach an event listener to a parent element, and this event will fire for all descendants matching the selector we pass.
Get Chrome DevTools Tips mailed to you each week.
Another magic trick that I love the most is when objects disappear. Specially pretty ladies, I wonder what magicians do with them.If magicians can make objects disappear, so can we. But we can only make elements disappear from our DOM using jQuery.
As web developers, sometimes we are required to conjure elements and add them to the DOM. Be it an error span or an addition textbox or an additional div, using our wand (jQuery) we can perform this trick with ease.