1
Can you personalize the confirm()
via CSS, or how to implement some modal in it? I tried to use Bootstrap but the JS code stops working:
$(function() {
$(".delete").click(function(){
var element = $(this);
var id = element.attr("id");
var info = 'id=' + id;
if(confirm("Deseja realmente Deletar cliente id: " + id)) {
$.ajax({
type: "POST",
url: "/removeClient",
data: info,
success: function () {
}
});
$(this).parents("#show").animate({backgroundColor: "#003"}, "slow").animate({opacity: "hide"}, "slow");
}
});
});