I have a link like
<a href='www.site.com' class='cancel'>go there </a>
And then I have some jQuery:
$('.cancel').click(function(){ confirm('sure??'); });
But when I click cancel in the alert box it still goes to http://www.site.com in stead of doing nothing. How to solve this?
Add the return statement: