Can you please explain the difference between event.preventdefault and "return false"? : jquery mobile



Can you please explain the difference between event.preventdefault and "return false"? : j..

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

Post New Answer

More jQuery Interview Questions

Can you write a jquery code to select all links inside the paragraph?

1 Answers  


How can we include jQuery library in ASP.Net project?

1 Answers  


How to delete cookies in jquery?

1 Answers  


Jquery can be used in what scenarios?

1 Answers  


Explain the concepts of "$ function" in jquery with an example?

1 Answers  


What is the method used to define the specific character in place of $ sign?

1 Answers  


What is the goal of cdn and what are the advantages of using cdn?

1 Answers  


What is a jquery ?

1 Answers  


What are deferred and promise object in jQuery?

1 Answers  


What is jquery a client or server scripting?

1 Answers  


What is the advantage of using the minified version of jquery rather than using the conventional one?

1 Answers  


What are the differences between size and length in jquery?

1 Answers  


Categories