Hi I am using jConfirm for my code . When I use the JS confirm evrything works fine but when I use jConfirm the submission is done first and the message box pops up later.
the code is . If a person belongs to the group and they want to delete the ticket, A jconfirm box shouls appear and they should be able to delete when ok pressed. BUt the confirm box comes up after the ticket is deleted.
function confirmDelete() { var deleteflag = false;
if (m_ticketStatus == 3 && $('#<%= hfAdminGroup.ClientID%>').val() == "TicketManagementAdmin") {
jConfirm('This ticket has been Hard Posted already, are you sure you want to delete it ?', 'Delete Ticket',
function (result) {
if (result)
deleteflag = true;
});
}