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

Explain width() vs css(‘width’)?

0 Answers  


What are deferred and promise object in jQuery?

1 Answers  


Define cdn in jquery?

0 Answers  


How to add a class to html element?

0 Answers  


​ What is difference between prop and attr?

1 Answers  






Explain finish method in jquery? : jquery mobile

0 Answers  


What is the difference between parent() and parents() methods in jQuery?

1 Answers  


What are the different types of selectors in jquery?

0 Answers  


What is .empty()? : jquery mobile

0 Answers  


What is the use of jquery .each() function?

1 Answers  


How to check/uncheck an input in jquery?

0 Answers  


What are the difference between empty(), remove() and detach() functions in jquery?

0 Answers  


Categories