jQuery Mobile Question:

Download Job Interview Questions and Answers PDF

What is event.stopPropagation?

jQuery Mobile Interview Question
jQuery Mobile Interview Question

Answer:

event.stopPropagation(): Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event. For example, if there is a link with a click method attached inside of a DIV or FORM that also has a click method attached, it will prevent the DIV or FORM click method from firing.

Download jQuery Mobile Interview Questions And Answers PDF

Previous QuestionNext Question
Explain event.PreventDefault?Can you please explain the difference between event.PreventDefault and "return false"?