title: Passing the value from JavaScript confirmation to Codeigniter Controller
body: <p>I am new to JavaScript and Codeigniter. I want to know how to pass the JavaScript confirmation (Yes/No) to Codeigniter Controller.</p>
  
  <p>For Example I have a link </p>
  
  <p><code>Update all records</code>. 
  (how to link this?).  </p>
  
  <p>Once the user click it, there's a pop-up message that says <code>Are you sure?</code>. If yes then it will be passed to controller/model and do the updates if no it will stay on the same page.</p>
  
  <p>Or can somebody teach me other approach?</p>