@automica i try this but same result
Oct 13, 2020
6
Level 13
remove class in not working
i have delete confirmation box in which i have lots of record but when i click to delete button then hide option then i page refresh remaning all option display again i click delete then hide all how to stop all option hide in modal
here is my code
$(document).on('click','.remove_field1-email',function(e){
e.preventDefault();
var eid = $(this).attr('id');
var splitData = eid.split("-");
var fid = $('#fid-'+splitData[2]).val();
$('#confirm_delete').click(function(){
if(fid){
$.ajax({
type:'POST',
data:{'_token':'{{csrf_token()}}','fid': fid},
url:"{{route('fraudalert.destroy')}}",
success:function(response){
if (response.status == 'success') {
printAjaxSuccessMsg(response.message);
} else {
printAjaxErrorMsg(response.message);
}
$("#removed_email").closest('.edit-cloned-email').remove();
$('#delete-fraudalert-email').modal("hide");
}
});
}
});
});
Please or to participate in this conversation.