Quantcast
Channel: PHP Script Blog » jquery
Viewing all articles
Browse latest Browse all 276

jQuery $(‘body’).on() vs $(‘document’).on()

$
0
0

With the new jQuery function .on() replacing .live() I’ve seen several different ways to use it. Here I take a look at the main difference between using body or document as the bound element in event delegation. If your new to event delegation it provides…

Article Source jQuery Blog.
Read Full Article jQuery $(‘body’).on() vs $(‘document’).on().


Viewing all articles
Browse latest Browse all 276

Trending Articles