jQuery delegate()

The jQuery delegate() method is used to attach a function to run when the event occurs for specified elements which are the children of selected elements, including both the current and the future elements. Syntax: $(selector).delegate(childSelector,event,data,function) ChildSelector: It is a mandatory parameter The child selector parameter is used to specify the child elements for a … Read more