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

What is queue() in jquery? Use of queue() in jquery?

1 Answers  


How to use it jquery knockout?

1 Answers  


Can we use our own specific character in the place of $ sign in jQuery?

1 Answers  


How to redirect to another page using jquery?

1 Answers  


Explain source maps in jquery? : jquery mobile

1 Answers  


Mention the advantages of cdn? : jQuery Mobile

1 Answers  


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

1 Answers  


How JavaScript and jQuery are different?

1 Answers  


What are jquery plugins?

1 Answers  


How can we apply css in odd childs of parent node using jquery library?

1 Answers  


Which command will give a version of jQuery?

1 Answers  


How can you use array with jquery?

1 Answers  


Categories