Explain .on()? : jquery mobile
Answer / 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 |
Whether we need to add jQuery file in both Master and Content page?
What is the script build up by jQuery?
Tell me how to write browser specific code using jquery? : jquery mobile
How to create clone of any object using jQuery?
What is finish method in jQuery?
Explain slidetoggle() effect.
How to divide a page into parts using jquery mobile? : jquery mobile
Can we select a element having a specific class in jquery ?
What is the difference between eq() and get() methods in jQuery?
How is the deferred method in jquery important in relation to animate method?
Define "beforesend(xhr)" paremeter of jquery ajax method?
How to check data type of any variable in jquery? : jquery mobile