How to use delegate method in jquery?
|Rate this page :||
[ 0 votes]
This jquery delegate allows you to attach one or more event to a parent element. When an event occurs the it specifies a function to run. Here,Clicking on the div adds another one. Note: delegate() attaches a click event handler to all divs - even new ones.