JQuery Programmer Question: Download JQuery Programmer PDF

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

Tweet Share WhatsApp

Answer:

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

Download JQuery Programmer PDF Read All 201 JQuery Programmer Questions
Previous QuestionNext Question
What is jQuery plugin and what is the advantage of using plugin?Is jQuery a library for client scripting or server scripting?