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 get the input value of an element using jquery?
What is the need for jquery? : jQuery Mobile
How to redirect to another page using jquery?
Can we execute/run multiple Ajax request simultaneously in jQuery? If yes, then how?
Give a brief idea about jquery mobile? : jQuery Mobile
Define bind() and unbind elements in jQuery?
Is it possible to use other client side libraries like MooTools, Prototype along with jQuery?
What is the use of the animate() method in jquery?
What are the different types of selectors?
Can we call C# code behind using jQuery?
What is the use of jquery .each() function?
What are jquery plugins?