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 is the deferred method in jquery important in relation to animate method?
What is the use jQuery.data method?
What happen if you return false from a jQuery event handler?
How can you get the type of arguments passed to a function?
Which are the fastest selectors in jquery? : jquery mobile
Which sign is used as a shortcut for jQuery?
Tell me what does dollar sign ($) means in jquery? : jquery mobile
Can we select a element having a specific class in jquery ?
What is queue() in jquery?
What is a jquery ajax?
Can we call C# code behind using jQuery?
Tell me does jquery 2.0 supports ie? : jquery mobile