Can you please explain the difference between event.preventdefault and "return false"? : jquery mobile
Answer / Kalpana Singh
Both event.preventDefault() and returning false from an event handler will stop the default action of the event (like submitting a form), but there are some subtle differences. event.preventDefault() allows you to prevent the default action without explicitly using return, while returning false can also cancel the bubbling and propagation of the event.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can you write a jquery code to select all links inside the paragraph?
How can we include jQuery library in ASP.Net project?
How to delete cookies in jquery?
Jquery can be used in what scenarios?
Explain the concepts of "$ function" in jquery with an example?
What is the method used to define the specific character in place of $ sign?
What is the goal of cdn and what are the advantages of using cdn?
What is a jquery ?
What are deferred and promise object in jQuery?
What is jquery a client or server scripting?
What is the advantage of using the minified version of jquery rather than using the conventional one?
What are the differences between size and length in jquery?