1.

What Is The Use Of Delegate() Method In Jquery?

Answer»

The delegate() METHOD can be used in two ways.
1) If you have a parent element, and you WANT to attach an event to each one of its child elements, this delegate() method is used.
EX:Un-ordered
2) When an element is not AVAILABLE on the current page, this method is used.
.live() method is also used for the same purpose but, delegate() method is a bit faster.

The delegate() method can be used in two ways.
1) If you have a parent element, and you want to attach an event to each one of its child elements, this delegate() method is used.
Ex:Un-ordered
2) When an element is not available on the current page, this method is used.
.live() method is also used for the same purpose but, delegate() method is a bit faster.



Discussion

No Comment Found