What is the difference between event.PreventDefault and "return false"?



What is the difference between event.PreventDefault and "return false"?..

Answer / chaitanya

e.preventDefault() will prevent the default event from occurring, e.stopPropagation() will prevent the event from bubbling up and return false will do both.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

How can we add change font size using jquery?

0 Answers  


How to use connect?

0 Answers  


Can you please explain the difference between parent() and parents() methods in jquery? : jquery mobile

0 Answers  


Why we need jquery?

0 Answers  


What is the between $(this) and 'this' in jquery?

0 Answers  






Explain .on()? : jquery mobile

0 Answers  


How to add or remove classes to an element in jquery?

0 Answers  


With jquery ui 1.7 being released in the last few days, what do you see as the key parts of jquery ui 1.7? What are you most proud of out of that release?

0 Answers  


Is jquery still relevant 2019?

0 Answers  


What is serialize() in jquery?

0 Answers  


Explain the use of jquery .each() function? : jquery mobile

0 Answers  


What methods used to provide effects?

0 Answers  


Categories