$('#fileupload').fileupload({ destroy: function (e, data) { var that = $(this).data('fileupload'); if (bootbox.confirm("Delete this file(s) ?") == true ) { if (data.url) { $.ajax(data) .success(function () { $(this).fadeOut(function () { $(this).remove(); }); }); } else { data.context.fadeOut(function () { $(this).remove(); }); } } } });
bootbox.confirm("Are you sure, you want to delete the User ?", function(result) { if (result === true) { //if true }else{ //if not } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)