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 |
Difference between parent() and parents() in jQuery?
Tell me how to select combobox select value and text using jquery?
Is jquery a framework?
Difference between $(this) and 'this' in jQuery?
How we can hide a block of html code on a button click using jquery?
What is jQuery UI?
Is it possible to get value of multiple CSS properties in single statement?
Different ways of using $.connect function in jquery?
How do you disable or enable a form element?
Name some of the methods of jquery used to provide effects?
What were the biggest challenges of getting the 1.7 release out there?
Explain jquery.noconflict? : jquery mobile