Explain .on()? : jquery mobile



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

Post New Answer

More jQuery Interview Questions

Whether we need to add jQuery file in both Master and Content page?

1 Answers  


What is the script build up by jQuery?

1 Answers  


Tell me how to write browser specific code using jquery? : jquery mobile

1 Answers  


How to create clone of any object using jQuery?

1 Answers  


What is finish method in jQuery?

1 Answers  


Explain slidetoggle() effect.

1 Answers  


How to divide a page into parts using jquery mobile? : jquery mobile

1 Answers  


Can we select a element having a specific class in jquery ?

1 Answers  


What is the difference between eq() and get() methods in jQuery?

1 Answers  


How is the deferred method in jquery important in relation to animate method?

1 Answers  


Define "beforesend(xhr)" paremeter of jquery ajax method?

1 Answers  


How to check data type of any variable in jquery? : jquery mobile

1 Answers  


Categories