Jquery Confirm Delete Example - Jquery
How to create confirm box while delete?
Snippet Code
Simple jquery code Creates a pop up window to confirm deletion anytime when you click the delete button.
<input type='button' value="delete" id='delete'>
<script type='text/javascript' src='./jquery.js'></script>
<script type='text/javascript'>
$(document).ready(function(){
$("#delete").click(function(){
if (!confirm("Do you want to delete")){
return false;
}
else
{
alert("Here call your delete function..")
}
});
});
</script>
Tags