Binds elements to the specified DOM elements with callback methods to handle events. If events are removed from the view, this method can be used to attach the events to the view.
events − It provides events that are needed for reattaching to the view.
Let us carry out the following steps to see how the above code works −
Save the above code in the delegateevents.htm file.
Open this HTML file in a browser.