Differences between the live () method and bind () method in jquery, jquerybind
This article describes the differences between the live () method and the bind () method in jquery. We will share this with you for your reference. The details are as follows:
Live () is not affected by the loading time sequence. You only need to search for events that can be paired with each other. The bind method can only bind the time when it is loaded for the first time, if the matching element is loaded after the code, the corresponding event cannot be bound.
$ ("# Manual_disconnect "). live ("click", function () {connectionProfile ("0") ;}); $ ("# manual_disconnect "). die ("click ");
Note: The die () method is used to unbind live.
$ ("# Manual_disconnect "). live ("click", function () {connectionProfile ("0") ;}); $ ("# manual_disconnect "). unbind ("click ");
Note: The unbind () method is used to unbind live.