Hello i want to put multiple confirm dialog on click of a button, Ex. when i click a button it shows "Are you sure?" with YES and NO, when i click YES another dialog box has to open with "want to notify users?" with YES and NO
<script>
$('.deletes').click( function () {
if (confirm( 'Are you sure? ' ) ) {
window.location="<?php echo site_url('controller/method'); ?>";
if (confirm( 'want to notify users? ' ) )
{
window.location="<?php echo site_url('contoller/method22'); ?>";
}
} });
</script>