Using event.preventDefault(); and return false
Using event.preventDefault(); and return false
1. I understand what
event.preventDefault();
does, but does it need to be used in case where the href in the a-tag is a hash:
<a href="#" id="someid">Click</a>
2. When should I use:
return false;
in my jQuery function? What does it do?
Thanks
Topic Participants
Kevin Boudloche
andreas.goebel