What happen if you return false from a jQuery event handler?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajkiran SwainRank #165 · 14.4K reputationPosted Jul 18, 2017, 1:38 AM EDT
Yatendrasinh JoddhaRank #1,233 · 1.4K reputationPosted Jul 17, 2017, 2:34 AM EDT
e.preventDefaultande.stopPropagation.e.preventDefault()will prevent the default event from occuring,e.stopPropagation()will prevent the event from bubbling up andreturn falsewill do both