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 get()? : jquery mobile

0 Answers  


What is the jQuery code to select all links inside the paragraph?

0 Answers  


Why is jquery better than javascript?

0 Answers  


How to check if number is numeric while using jQuery 1.7+?

1 Answers  


Can you call C# code-behind method using jQuery? If yes,then how?

1 Answers  






Tell me how to disable jquery animation? : jquery mobile

0 Answers  


Is numeric in jquery?

0 Answers  


What is jQuery?

1 Answers  


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

1 Answers  


Is jquery code exicuted on the clientside, or serverside?

0 Answers  


How to get the value of selected option in jquery?

0 Answers  


Suppose if you have a server control(asp.net server control, button) and on the click of button you want to call a jquery function, so tell me how you will call a jquery function without postback?

0 Answers  


Categories