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