I don't get why this confirm() call fires up even though i hit "no". Can you tell me what i'm doing wrong?
$('.deleteButton').livequery('click',function(){
if(confirm('Are you sure?')){
return true;
}else
{
return false;
}
return false;
});
The HTML Markup:
<a class="smallbutton deleteButton" href="users.php?todo=delete&id=32">delete</a>
I checked and it does return false, but the page still redirects to the clicked A href value. Normally, if i return false, it shouldn't, right?