5
Colleagues.
I don’t know if I was clear in my doubt, but I would like the Bootstrap modal to disappear automatically after the deletion confirmation. For example: user will delete a product, appeared the message: "Product deleted successfully". The modal was active for about 3 seconds and then disappeared. The Jquery code I want to put below:
$("#produtos").on('click', 'a.remove-item', function(e) {
e.preventDefault();
var pcode = $(this).attr("codigo");
$(this).parent().fadeOut();
$.getJSON( "processar.php", {"remover":pcod} , function(data){
$("#info").html(data.items);
$(".box").trigger( "click" );
});
});
Perfect Renan. Thank you so much!
– user24136