Chat with Thomas | Profile

Welcome to the Modern Web Design.

📎 return false and e.preventDefault

return false and e.preventDefault

There is a difference between prevent default and return false, and between jQuery function and plain JavaScript.

If you are wondering what is return false and when to use it? This is the doc to check:

http://stackoverflow.com/a/1357151

You may also want to check out this CSS-tricks post:

https://css-tricks.com/return-false-and-prevent-default/

http://stackoverflow.com/a/1357151