Home >Web Front-end >JS Tutorial >Example of usage of live() method in jQuery_jquery
The example in this article describes the usage of the live() method in jQuery. Share it with everyone for your reference. The specific analysis is as follows:
This method adds one or more events to the matching element and specifies a function to run when these events occur.
Special note: jQuery1.9 has deleted this method.
Grammar structure:
Parameter list:
Example code:
The above code registers the click event handler for the li element.
I hope this article will be helpful to everyone’s jQuery programming.