Back to Browse

Difference between preventDefault() and return false

5.3K views
Dec 14, 2017
8:27

https://www.udemy.com/course/jquery-web-development-made-easy/?referralCode=65882CEEB151DBF75AEE jQuery in Action: Build 15 jQuery Projects https://www.udemy.com/course/jquery-ui-practical-build-jquery-ui-projects/?referralCode=75D379628D2FB4BF5134 jQuery UI in Action: Build 9 jQuery UI Projects https://www.udemy.com/course/hands-on-jquery-jquery-examples/?referralCode=925EF917F513C5A6B847 Hands-On jQuery: jQuery Examples Find all our Udemy courses here: https://www.udemy.com/user/cryptersinfotech/ Difference between preventDefault() and return false The main difference between preventDefault() and return false; is that preventDefault just prevents the default action from happening whereas return false prevents that event from propagating (or "bubbling up") through all the ancestors along with preventing the default action from happening.

Download

0 formats

No download links available.

Difference between preventDefault() and return false | NatokHD