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 |
Explain each() function in jquery?
How do you get the text value of a selected option?
Define each() function in jquery?
You get "jquery is not defined" or "$ is not defined" error. What could be the reason?
What is called chaining?
How to select combobox select value and text using jquery?
How we can check if an element is empty or not using jquery?
How can an element be checked if it contains a specific class?
What is $() in jquery?
What is a filter in jquery? Explain
What are all the ways to include jQuery in a page?
Why use jQuery filter() Methods?