How to delete data from Datatable plugin using Bootstrap modal in CodeIgniter

category:  CodeIgniter, Web development

Recently, I wrote two posts about adding and editing the data in the Bootstrap modal in CodeIgniter. Today I will share how to delete the data using Bootstrap modal in CodeIgniter. Let’s do it. Add new delete control in DataTable Assume you already integrate the DataTable plugin to your template. If not, you can follow this post for integrating the DataTable plugin to your template in CodeIgniter. Open your footer template and add the JavaScript code below. This script must … Read More

How to edit data from Datatable plugin using Bootstrap modal in CodeIgniter

category:  CodeIgniter, Web development

In the last post, I wrote, “How to add data from Datatable plugin using Bootstrap modal in CodeIgniter” I show only adding new data. In this post, I will share how to edit data via Bootstrap modal. Let’s go. Add a new column for the controller in the view page In the template, we add the new column in the table tag. This table will use for the DataTable plugin. Add the edit control in the footer template Open your … Read More

How to add data from Datatable plugin using Bootstrap modal in CodeIgniter

category:  CodeIgniter, Web development

Datatable plugin is one of the popular JavaScript plugins. It displays the data in the table style. It comes with pagination, instant search, and column sorting out of the box. However, in the user’s view, they want to be able to add, edit, or delete the data from the Datatable without leaving the current page. We can do that by using Ajax and the Bootstrap modal. In this post, I will share with you how to add data from Datatable … Read More