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 |
Change the url for a hyperlink using jquery?
And finally, if you could give one tip to any new budding jquery ui developers, what would it be?
List the advantage of using minimized version of jquery?
How you get server response from an ajax request using jquery?
What is jquery connect and how to use it?
What is difference between $(this) and ‘this’ in jquery?
What is the difference between find and children methods in jquery?
Is window.onload is different from document.ready()?
How to give face effect in jquery?
What is the difference between settimeout() and setinterval() methods?
How can you select all elements in a page using jquery?
What does dollar sign ($) means in jquery? : jquery mobile