Created — forked from cdevroe/jQuery Confirm delete?

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View jQuery Confirm delete?.js
1 2 3 4 5 6 7 8 9 10
$(document).ready(function(){
// All links with class delete
$('.delete').click(function(event){
// This should work--if cancel is pressed, it returns false, canceling
// the click. I haven't tested it out myself, though.
return confirm("Are you sure you want to delete this item?");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.