how to join two table in codeigniter easily[updated] | ci_model | ci_controller | codeigniter 3 -datainflow
Bootbox
If you want to add nice alert or confirm or prompt dialog, then use bootbox. Bootbox is a simple javascript library for showing nice alert dialog or confirmation or prompt in bootstrap. For this first of all download bootbox.js from this link.
Then add this js file to your HTML document.
Alert dialog
After calling the bootbox.js, initial the bootbox js.
bootbox.alert("Hello world!");
Confirmation dialog
bootbox.confirm('Are you sure to do it',function(res){ if(res) alert("Yes click"); else alert("Cancel clicked"); })
Prompt dialog
bootbox.prompt("Add the value", function(res){ console.log(res); })
Thats all.
Related posts