adspace
Answer Posted / Parul Srivastava
In jQuery, the `.on()` method is used to attach event handlers dynamically. It allows you to bind event listeners to elements that are added to the DOM after the page has loaded. Here's an example:
```javascript
$(document).on('click', '#myButton', function() {
// Handle click event on #myButton
});
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you install/use jquery in a project. What is the minimum setup needed to start using jquery.
Do you have plans for a new jquery plug-in or something else we should look out for? Where to from here for the imgpreview plugin?
How to always reference latest version of jquery?
What is the minimum setup needed to start using jquery.
How can jquery library be added to pages?
How to validate email using jquery?