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 we can select multiple elements in jquery?
What is the difference between jquery.size() and jquery.length?
What is the use of delay() method in JQuery?
When can jquery be used?
What is the difference between event.stopPropagation and event.stopImmediatePropagation?
Tell me what does dollar sign ($) means in jquery? : jquery mobile
How to include jQuery in ASP.Net project?
What is the difference between $.map and $.grep in jQuery?
What is cdn and how jquery is related to it?
What are the features of jquery used in web applications?
Explain the difference between body onload() and document.ready() function? : jquery mobile
What is difference between .setinterval() and .delay() ?