What is the difference between event.PreventDefault and event.stopPropagation?
Answer Posted / 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 |
Post New Answer View All Answers
Jquery can be used in what scenarios?
What is the advantage of using minimized version of jQuery?
Define cache paremeter of jquery ajax method?
Explain the animate function.
How can you use a jquery library in your project?
How we can remove an attribute of an html tag in jquery?
What are the paremeter of jquery ajax method?
Explain type paremeter of jquery ajax method?
Which program is useful for testing jQuery?
Define the script build up by jquery?
How can jquery library be added to pages?
What were the biggest challenges of getting the 1.7 release out there?
How to use jquery?
What is jquery and what are the advantages?
Define slidetoggle() effect?