Showing posts with label bind vs on jquery. Show all posts
Showing posts with label bind vs on jquery. Show all posts

Thursday, 11 August 2016

Difference between on and bind in jQuery

The .bind() method registers the event and event handler directly to the DOM element.This method is still very handy when wiring-up event handlers, but there are various performance concerns as are listed below. Internally .bind() maps to .on() as per current version of Jquery .bind may be removed from future versions at any time. There is no reason to keep using .bind and every...