What is the difference between event.PreventDefault and event.stopPropagation?
Answer / chaitanya
event.preventDefault(): Stops the default action of an element from happening.
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.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can we add change font size using jquery?
Explain each() function in jquery?
How you will use jquery means requirement needed for using jquery.
How to fetch the values of selected checkbox array using jquery?
Define .siblings() method in jquery?
What is $('div')? : jquery mobile
Define "beforesend(xhr)" paremeter of jquery ajax method?
How we can hide a block of html code on a button click using jquery?
Explain cdn? : jquery mobile
How to call a method inside code-behind using jquery?
Is jQuery a programming language?
What are the advantages of jQuery?