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 |
What are the methods used to provide effects in jquery?
How to include jQuery in ASP.Net project?
How to load jQuery from CDN?
How to disable jQuery animation?
How to use it jquery knockout?
How to load jQuery locally when CDN fails?
Write the code to define a requirejs module with its dependencies.
What are the advantages of method chaining in jquery?
How to check data type of any variable in jquery? : jquery mobile
How to programmatically trigger a click event thats being handled by jquery only?
How method can be called inside code behind using jQuery?
How can jquery library be added to pages?