title: How to use multiple confirm dialogs using javascript/jquery
body: <p>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</p>
  
  <pre><code>&lt;script&gt;
   $('.deletes').click( function () {  
  if (confirm( 'Are you sure? ' ) ) {  
  window.location="&lt;?php echo site_url('controller/method'); ?&gt;";
  if (confirm( 'want to notify users? ' ) )
  { 
  window.location="&lt;?php echo site_url('contoller/method22'); ?&gt;";
  } 
  
  } });
  
  
  &lt;/script&gt;
  </code></pre>