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 |
Tell me how to use migrate jquery plugin if possible? : jquery mobile
How to resolve conflicts with other libraries?
What are the advantage of using minimized version of jquery?
Explain the use of each function in jquery?
Will Events Are Also Copied On Clone In Jquery?
How to find all sibling elements in front of the current element using ?
What are the paremeter of jquery ajax method?
Can you please explain the difference between .js and .min.js? : jquery mobile
What is the use of queue() in jquery?
What were the biggest challenges of getting the jQuery 1.7 release ?
what are the features of jquery
Difference between javascript and jquery?