- when you click three dots you will see delete pop-up.
- when you click delete it will it will delete.
- but before it getting deleted I need to show a confirmation modal with yes or no button.
- when I select yes it should delete when I select no it should not delete
- can you tell me how to achieve it?
- providing my code below
https://jsfiddle.net/su301f1u/
var pai_to_delete = null;
$(document).ready(function(){
$('.pai-del-menu').hide();
//$('del-menu')
});
$(".pai-del-row").click(function(e){
var pai_x = e.pageX;
var pai_y = e.pageY;
$('.pai-del-menu').css({left: pai_x, top: pai_y});
$('.pai-del-menu').show();
$('.pai-del-menu').attr('tabindex',-1).focus();
pai_to_delete = $(this).parent();
});
$('.pai-del-menu').blur(function(){
$(this).hide();
pai_to_delete = null;
});
$('.pai-del-menu').click(function(){
$(this).hide();
pai_to_delete.remove();
});