title: How to add Jquery Confirmation Modal
body: <p>I was trying to delete a data from database using jquery and the following script helped me to do so. Now I want to show a jquery confirmation modal(YES: NO) before it finally goes for deleting it. I went through some tutorials to learn how to do that but I couldn't make those work for me</p>
  
  <p>Please kindly show me how to add the confirmation modal.</p>
  
  <p>Thanks </p>
  
  <pre><code>&lt;script&gt;
  
   $(function(){ // added
               $('a.delete').click(function(){
                  var a_href = $(this).attr('href'); 
       $.ajax({
  
       type: "POST",
       url: "&lt;?php echo base_url(); ?&gt;batchlist/delete",
       data: "id="+a_href,
       success: function(server_response){
  
                 if(server_response == '1')
                              { alert('MSG');}  else {$("#trid_"+a_href).hide('slow'); }
  
                                      }               
  
     });  //$.ajax ends here
  
                  return false
      });//.click function ends here
    }); // function ends here         
  
  
   &lt;/script                                   
  </code></pre>
  
  <p>This is my delete anchor</p>
  
  <pre><code>&lt;a href="&lt;?php echo $row['studentid']; ?&gt;" title="Delete" class="delete" &gt;&lt;img src="&lt;?php echo base_url(); ?&gt;support/images/icons/cross.png" alt="Delete" /&gt;&lt;/a&gt;            
  </code></pre>