Difference between preventDefault() and return false

Описание к видео Difference between preventDefault() and return false

https://www.udemy.com/course/jquery-w...
jQuery in Action: Build 15 jQuery Projects

https://www.udemy.com/course/jquery-u...
jQuery UI in Action: Build 9 jQuery UI Projects

https://www.udemy.com/course/hands-on...
Hands-On jQuery: jQuery Examples

Find all our Udemy courses here:
https://www.udemy.com/user/cryptersin...

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.

Комментарии

Информация по комментариям в разработке