{"id":1073,"date":"2024-07-17T19:05:09","date_gmt":"2024-07-17T19:05:09","guid":{"rendered":"https:\/\/www.appfinz.com\/blogs\/?p=1073"},"modified":"2025-05-15T05:00:40","modified_gmt":"2025-05-15T05:00:40","slug":"bootstrap-crud-data-table-for-database-with-modal-form","status":"publish","type":"post","link":"https:\/\/www.appfinz.com\/blogs\/bootstrap-crud-data-table-for-database-with-modal-form\/","title":{"rendered":"Bootstrap Crud Data Table for Database with Modal Form"},"content":{"rendered":"\n<p>Hello Nerds, <\/p>\n\n\n\n<p>In this blog section, we will see basic example of how to make bootstrap crud data table for database with modal form, In this example we have designed a basic bootstrap table which reflects bootstrap crud data table for database. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"430\" src=\"https:\/\/www.appfinz.com\/blogs\/wp-content\/uploads\/2024\/07\/WhatsApp-Image-2024-07-18-at-00.25.24-1024x430.jpeg\" alt=\"Bootstrap Crud Data Table for Database with Modal Form\" class=\"wp-image-1074\" title=\"\" srcset=\"https:\/\/www.appfinz.com\/blogs\/wp-content\/uploads\/2024\/07\/WhatsApp-Image-2024-07-18-at-00.25.24-1024x430.jpeg 1024w, https:\/\/www.appfinz.com\/blogs\/wp-content\/uploads\/2024\/07\/WhatsApp-Image-2024-07-18-at-00.25.24-300x126.jpeg 300w, https:\/\/www.appfinz.com\/blogs\/wp-content\/uploads\/2024\/07\/WhatsApp-Image-2024-07-18-at-00.25.24-768x322.jpeg 768w, https:\/\/www.appfinz.com\/blogs\/wp-content\/uploads\/2024\/07\/WhatsApp-Image-2024-07-18-at-00.25.24.jpeg 1173w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>lets beging with source code here:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;php&quot;,&quot;mime&quot;:&quot;text\/x-php&quot;,&quot;theme&quot;:&quot;midnight&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;HTML&quot;,&quot;language&quot;:&quot;PHP&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;php&quot;}\">&lt;!DOCTYPE html&gt;\n&lt;html lang=&quot;en&quot;&gt;\n&lt;head&gt;\n&lt;meta charset=&quot;utf-8&quot;&gt;\n&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, shrink-to-fit=no&quot;&gt;\n&lt;title&gt;Bootstrap CRUD Data Table for Database with Modal Form | Appfinz Technologies&lt;\/title&gt;\n&lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/fonts.googleapis.com\/css?family=Roboto|Varela+Round&quot;&gt;\n&lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.5.0\/css\/bootstrap.min.css&quot;&gt;\n&lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/fonts.googleapis.com\/icon?family=Material+Icons&quot;&gt;\n&lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/maxcdn.bootstrapcdn.com\/font-awesome\/4.7.0\/css\/font-awesome.min.css&quot;&gt;\n&lt;script src=&quot;https:\/\/code.jquery.com\/jquery-3.5.1.min.js&quot;&gt;&lt;\/script&gt;\n&lt;script src=&quot;https:\/\/cdn.jsdelivr.net\/npm\/popper.js@1.16.0\/dist\/umd\/popper.min.js&quot;&gt;&lt;\/script&gt;\n&lt;script src=&quot;https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.5.0\/js\/bootstrap.min.js&quot;&gt;&lt;\/script&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n&lt;div class=&quot;container-xl&quot;&gt;\n\t&lt;div class=&quot;table-responsive&quot;&gt;\n\t\t&lt;div class=&quot;table-wrapper&quot;&gt;\n\t\t\t&lt;div class=&quot;table-title&quot;&gt;\n\t\t\t\t&lt;div class=&quot;row&quot;&gt;\n\t\t\t\t\t&lt;div class=&quot;col-sm-6&quot;&gt;\n\t\t\t\t\t\t&lt;h2&gt;Manage &lt;b&gt;Employees&lt;\/b&gt;&lt;\/h2&gt;\n\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t&lt;div class=&quot;col-sm-6&quot;&gt;\n\t\t\t\t\t\t&lt;a href=&quot;#addEmployeeModal&quot; class=&quot;btn btn-success&quot; data-toggle=&quot;modal&quot;&gt;&lt;i class=&quot;material-icons&quot;&gt;&amp;#xE147;&lt;\/i&gt; &lt;span&gt;Add New Employee&lt;\/span&gt;&lt;\/a&gt;\n\t\t\t\t\t\t&lt;a href=&quot;#deleteEmployeeModal&quot; class=&quot;btn btn-danger&quot; data-toggle=&quot;modal&quot;&gt;&lt;i class=&quot;material-icons&quot;&gt;&amp;#xE15C;&lt;\/i&gt; &lt;span&gt;Delete&lt;\/span&gt;&lt;\/a&gt;\t\t\t\t\t\t\n\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t&lt;\/div&gt;\n\t\t\t&lt;table class=&quot;table table-striped table-hover&quot;&gt;\n\t\t\t\t&lt;thead&gt;\n\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t&lt;th&gt;\n\t\t\t\t\t\t\t&lt;span class=&quot;custom-checkbox&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;input type=&quot;checkbox&quot; id=&quot;selectAll&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;label for=&quot;selectAll&quot;&gt;&lt;\/label&gt;\n\t\t\t\t\t\t\t&lt;\/span&gt;\n\t\t\t\t\t\t&lt;\/th&gt;\n\t\t\t\t\t\t&lt;th&gt;Name&lt;\/th&gt;\n\t\t\t\t\t\t&lt;th&gt;Email&lt;\/th&gt;\n\t\t\t\t\t\t&lt;th&gt;Address&lt;\/th&gt;\n\t\t\t\t\t\t&lt;th&gt;Phone&lt;\/th&gt;\n\t\t\t\t\t\t&lt;th&gt;Actions&lt;\/th&gt;\n\t\t\t\t\t&lt;\/tr&gt;\n\t\t\t\t&lt;\/thead&gt;\n\t\t\t\t&lt;tbody&gt;\n\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t&lt;td&gt;\n\t\t\t\t\t\t\t&lt;span class=&quot;custom-checkbox&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;input type=&quot;checkbox&quot; id=&quot;checkbox1&quot; name=&quot;options[]&quot; value=&quot;1&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;label for=&quot;checkbox1&quot;&gt;&lt;\/label&gt;\n\t\t\t\t\t\t\t&lt;\/span&gt;\n\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;Thomas Hardy&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;thomashardy@mail.com&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;89 Chiaroscuro Rd, Portland, USA&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;(171) 555-2222&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;\n\t\t\t\t\t\t\t&lt;a href=&quot;#editEmployeeModal&quot; class=&quot;edit&quot; data-toggle=&quot;modal&quot;&gt;&lt;i class=&quot;material-icons&quot; data-toggle=&quot;tooltip&quot; title=&quot;Edit&quot;&gt;&amp;#xE254;&lt;\/i&gt;&lt;\/a&gt;\n\t\t\t\t\t\t\t&lt;a href=&quot;#deleteEmployeeModal&quot; class=&quot;delete&quot; data-toggle=&quot;modal&quot;&gt;&lt;i class=&quot;material-icons&quot; data-toggle=&quot;tooltip&quot; title=&quot;Delete&quot;&gt;&amp;#xE872;&lt;\/i&gt;&lt;\/a&gt;\n\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t&lt;\/tr&gt;\n\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t&lt;td&gt;\n\t\t\t\t\t\t\t&lt;span class=&quot;custom-checkbox&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;input type=&quot;checkbox&quot; id=&quot;checkbox2&quot; name=&quot;options[]&quot; value=&quot;1&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;label for=&quot;checkbox2&quot;&gt;&lt;\/label&gt;\n\t\t\t\t\t\t\t&lt;\/span&gt;\n\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;Dominique Perrier&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;dominiqueperrier@mail.com&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;Obere Str. 57, Berlin, Germany&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;(313) 555-5735&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;\n\t\t\t\t\t\t\t&lt;a href=&quot;#editEmployeeModal&quot; class=&quot;edit&quot; data-toggle=&quot;modal&quot;&gt;&lt;i class=&quot;material-icons&quot; data-toggle=&quot;tooltip&quot; title=&quot;Edit&quot;&gt;&amp;#xE254;&lt;\/i&gt;&lt;\/a&gt;\n\t\t\t\t\t\t\t&lt;a href=&quot;#deleteEmployeeModal&quot; class=&quot;delete&quot; data-toggle=&quot;modal&quot;&gt;&lt;i class=&quot;material-icons&quot; data-toggle=&quot;tooltip&quot; title=&quot;Delete&quot;&gt;&amp;#xE872;&lt;\/i&gt;&lt;\/a&gt;\n\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t&lt;\/tr&gt;\n\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t&lt;td&gt;\n\t\t\t\t\t\t\t&lt;span class=&quot;custom-checkbox&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;input type=&quot;checkbox&quot; id=&quot;checkbox3&quot; name=&quot;options[]&quot; value=&quot;1&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;label for=&quot;checkbox3&quot;&gt;&lt;\/label&gt;\n\t\t\t\t\t\t\t&lt;\/span&gt;\n\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;Maria Anders&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;mariaanders@mail.com&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;25, rue Lauriston, Paris, France&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;(503) 555-9931&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;\n\t\t\t\t\t\t\t&lt;a href=&quot;#editEmployeeModal&quot; class=&quot;edit&quot; data-toggle=&quot;modal&quot;&gt;&lt;i class=&quot;material-icons&quot; data-toggle=&quot;tooltip&quot; title=&quot;Edit&quot;&gt;&amp;#xE254;&lt;\/i&gt;&lt;\/a&gt;\n\t\t\t\t\t\t\t&lt;a href=&quot;#deleteEmployeeModal&quot; class=&quot;delete&quot; data-toggle=&quot;modal&quot;&gt;&lt;i class=&quot;material-icons&quot; data-toggle=&quot;tooltip&quot; title=&quot;Delete&quot;&gt;&amp;#xE872;&lt;\/i&gt;&lt;\/a&gt;\n\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t&lt;\/tr&gt;\n\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t&lt;td&gt;\n\t\t\t\t\t\t\t&lt;span class=&quot;custom-checkbox&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;input type=&quot;checkbox&quot; id=&quot;checkbox4&quot; name=&quot;options[]&quot; value=&quot;1&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;label for=&quot;checkbox4&quot;&gt;&lt;\/label&gt;\n\t\t\t\t\t\t\t&lt;\/span&gt;\n\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;Fran Wilson&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;franwilson@mail.com&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;C\/ Araquil, 67, Madrid, Spain&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;(204) 619-5731&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;\n\t\t\t\t\t\t\t&lt;a href=&quot;#editEmployeeModal&quot; class=&quot;edit&quot; data-toggle=&quot;modal&quot;&gt;&lt;i class=&quot;material-icons&quot; data-toggle=&quot;tooltip&quot; title=&quot;Edit&quot;&gt;&amp;#xE254;&lt;\/i&gt;&lt;\/a&gt;\n\t\t\t\t\t\t\t&lt;a href=&quot;#deleteEmployeeModal&quot; class=&quot;delete&quot; data-toggle=&quot;modal&quot;&gt;&lt;i class=&quot;material-icons&quot; data-toggle=&quot;tooltip&quot; title=&quot;Delete&quot;&gt;&amp;#xE872;&lt;\/i&gt;&lt;\/a&gt;\n\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t&lt;\/tr&gt;\t\t\t\t\t\n\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t&lt;td&gt;\n\t\t\t\t\t\t\t&lt;span class=&quot;custom-checkbox&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;input type=&quot;checkbox&quot; id=&quot;checkbox5&quot; name=&quot;options[]&quot; value=&quot;1&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;label for=&quot;checkbox5&quot;&gt;&lt;\/label&gt;\n\t\t\t\t\t\t\t&lt;\/span&gt;\n\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;Martin Blank&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;martinblank@mail.com&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;Via Monte Bianco 34, Turin, Italy&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;(480) 631-2097&lt;\/td&gt;\n\t\t\t\t\t\t&lt;td&gt;\n\t\t\t\t\t\t\t&lt;a href=&quot;#editEmployeeModal&quot; class=&quot;edit&quot; data-toggle=&quot;modal&quot;&gt;&lt;i class=&quot;material-icons&quot; data-toggle=&quot;tooltip&quot; title=&quot;Edit&quot;&gt;&amp;#xE254;&lt;\/i&gt;&lt;\/a&gt;\n\t\t\t\t\t\t\t&lt;a href=&quot;#deleteEmployeeModal&quot; class=&quot;delete&quot; data-toggle=&quot;modal&quot;&gt;&lt;i class=&quot;material-icons&quot; data-toggle=&quot;tooltip&quot; title=&quot;Delete&quot;&gt;&amp;#xE872;&lt;\/i&gt;&lt;\/a&gt;\n\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t&lt;\/tr&gt; \n\t\t\t\t&lt;\/tbody&gt;\n\t\t\t&lt;\/table&gt;\n\t\t\t&lt;div class=&quot;clearfix&quot;&gt;\n\t\t\t\t&lt;div class=&quot;hint-text&quot;&gt;Showing &lt;b&gt;5&lt;\/b&gt; out of &lt;b&gt;25&lt;\/b&gt; entries&lt;\/div&gt;\n\t\t\t\t&lt;ul class=&quot;pagination&quot;&gt;\n\t\t\t\t\t&lt;li class=&quot;page-item disabled&quot;&gt;&lt;a href=&quot;#&quot;&gt;Previous&lt;\/a&gt;&lt;\/li&gt;\n\t\t\t\t\t&lt;li class=&quot;page-item&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;page-link&quot;&gt;1&lt;\/a&gt;&lt;\/li&gt;\n\t\t\t\t\t&lt;li class=&quot;page-item&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;page-link&quot;&gt;2&lt;\/a&gt;&lt;\/li&gt;\n\t\t\t\t\t&lt;li class=&quot;page-item active&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;page-link&quot;&gt;3&lt;\/a&gt;&lt;\/li&gt;\n\t\t\t\t\t&lt;li class=&quot;page-item&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;page-link&quot;&gt;4&lt;\/a&gt;&lt;\/li&gt;\n\t\t\t\t\t&lt;li class=&quot;page-item&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;page-link&quot;&gt;5&lt;\/a&gt;&lt;\/li&gt;\n\t\t\t\t\t&lt;li class=&quot;page-item&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;page-link&quot;&gt;Next&lt;\/a&gt;&lt;\/li&gt;\n\t\t\t\t&lt;\/ul&gt;\n\t\t\t&lt;\/div&gt;\n\t\t&lt;\/div&gt;\n\t&lt;\/div&gt;        \n&lt;\/div&gt;\n&lt;!-- Edit Modal HTML --&gt;\n&lt;div id=&quot;addEmployeeModal&quot; class=&quot;modal fade&quot;&gt;\n\t&lt;div class=&quot;modal-dialog&quot;&gt;\n\t\t&lt;div class=&quot;modal-content&quot;&gt;\n\t\t\t&lt;form&gt;\n\t\t\t\t&lt;div class=&quot;modal-header&quot;&gt;\t\t\t\t\t\t\n\t\t\t\t\t&lt;h4 class=&quot;modal-title&quot;&gt;Add Employee&lt;\/h4&gt;\n\t\t\t\t\t&lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot; aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;\/button&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;modal-body&quot;&gt;\t\t\t\t\t\n\t\t\t\t\t&lt;div class=&quot;form-group&quot;&gt;\n\t\t\t\t\t\t&lt;label&gt;Name&lt;\/label&gt;\n\t\t\t\t\t\t&lt;input type=&quot;text&quot; class=&quot;form-control&quot; required&gt;\n\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t&lt;div class=&quot;form-group&quot;&gt;\n\t\t\t\t\t\t&lt;label&gt;Email&lt;\/label&gt;\n\t\t\t\t\t\t&lt;input type=&quot;email&quot; class=&quot;form-control&quot; required&gt;\n\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t&lt;div class=&quot;form-group&quot;&gt;\n\t\t\t\t\t\t&lt;label&gt;Address&lt;\/label&gt;\n\t\t\t\t\t\t&lt;textarea class=&quot;form-control&quot; required&gt;&lt;\/textarea&gt;\n\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t&lt;div class=&quot;form-group&quot;&gt;\n\t\t\t\t\t\t&lt;label&gt;Phone&lt;\/label&gt;\n\t\t\t\t\t\t&lt;input type=&quot;text&quot; class=&quot;form-control&quot; required&gt;\n\t\t\t\t\t&lt;\/div&gt;\t\t\t\t\t\n\t\t\t\t&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;modal-footer&quot;&gt;\n\t\t\t\t\t&lt;input type=&quot;button&quot; class=&quot;btn btn-default&quot; data-dismiss=&quot;modal&quot; value=&quot;Cancel&quot;&gt;\n\t\t\t\t\t&lt;input type=&quot;submit&quot; class=&quot;btn btn-success&quot; value=&quot;Add&quot;&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t&lt;\/form&gt;\n\t\t&lt;\/div&gt;\n\t&lt;\/div&gt;\n&lt;\/div&gt;\n&lt;!-- Edit Modal HTML --&gt;\n&lt;div id=&quot;editEmployeeModal&quot; class=&quot;modal fade&quot;&gt;\n\t&lt;div class=&quot;modal-dialog&quot;&gt;\n\t\t&lt;div class=&quot;modal-content&quot;&gt;\n\t\t\t&lt;form&gt;\n\t\t\t\t&lt;div class=&quot;modal-header&quot;&gt;\t\t\t\t\t\t\n\t\t\t\t\t&lt;h4 class=&quot;modal-title&quot;&gt;Edit Employee&lt;\/h4&gt;\n\t\t\t\t\t&lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot; aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;\/button&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;modal-body&quot;&gt;\t\t\t\t\t\n\t\t\t\t\t&lt;div class=&quot;form-group&quot;&gt;\n\t\t\t\t\t\t&lt;label&gt;Name&lt;\/label&gt;\n\t\t\t\t\t\t&lt;input type=&quot;text&quot; class=&quot;form-control&quot; required&gt;\n\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t&lt;div class=&quot;form-group&quot;&gt;\n\t\t\t\t\t\t&lt;label&gt;Email&lt;\/label&gt;\n\t\t\t\t\t\t&lt;input type=&quot;email&quot; class=&quot;form-control&quot; required&gt;\n\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t&lt;div class=&quot;form-group&quot;&gt;\n\t\t\t\t\t\t&lt;label&gt;Address&lt;\/label&gt;\n\t\t\t\t\t\t&lt;textarea class=&quot;form-control&quot; required&gt;&lt;\/textarea&gt;\n\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t&lt;div class=&quot;form-group&quot;&gt;\n\t\t\t\t\t\t&lt;label&gt;Phone&lt;\/label&gt;\n\t\t\t\t\t\t&lt;input type=&quot;text&quot; class=&quot;form-control&quot; required&gt;\n\t\t\t\t\t&lt;\/div&gt;\t\t\t\t\t\n\t\t\t\t&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;modal-footer&quot;&gt;\n\t\t\t\t\t&lt;input type=&quot;button&quot; class=&quot;btn btn-default&quot; data-dismiss=&quot;modal&quot; value=&quot;Cancel&quot;&gt;\n\t\t\t\t\t&lt;input type=&quot;submit&quot; class=&quot;btn btn-info&quot; value=&quot;Save&quot;&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t&lt;\/form&gt;\n\t\t&lt;\/div&gt;\n\t&lt;\/div&gt;\n&lt;\/div&gt;\n&lt;!-- Delete Modal HTML --&gt;\n&lt;div id=&quot;deleteEmployeeModal&quot; class=&quot;modal fade&quot;&gt;\n\t&lt;div class=&quot;modal-dialog&quot;&gt;\n\t\t&lt;div class=&quot;modal-content&quot;&gt;\n\t\t\t&lt;form&gt;\n\t\t\t\t&lt;div class=&quot;modal-header&quot;&gt;\t\t\t\t\t\t\n\t\t\t\t\t&lt;h4 class=&quot;modal-title&quot;&gt;Delete Employee&lt;\/h4&gt;\n\t\t\t\t\t&lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot; aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;\/button&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;modal-body&quot;&gt;\t\t\t\t\t\n\t\t\t\t\t&lt;p&gt;Are you sure you want to delete these Records?&lt;\/p&gt;\n\t\t\t\t\t&lt;p class=&quot;text-warning&quot;&gt;&lt;small&gt;This action cannot be undone.&lt;\/small&gt;&lt;\/p&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;modal-footer&quot;&gt;\n\t\t\t\t\t&lt;input type=&quot;button&quot; class=&quot;btn btn-default&quot; data-dismiss=&quot;modal&quot; value=&quot;Cancel&quot;&gt;\n\t\t\t\t\t&lt;input type=&quot;submit&quot; class=&quot;btn btn-danger&quot; value=&quot;Delete&quot;&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t&lt;\/form&gt;\n\t\t&lt;\/div&gt;\n\t&lt;\/div&gt;\n&lt;\/div&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/pre><\/div>\n\n\n\n<p>Following in the css code, which help to design the complete table for crud using bootstrap:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;php&quot;,&quot;mime&quot;:&quot;text\/x-php&quot;,&quot;theme&quot;:&quot;midnight&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;CSS&quot;,&quot;language&quot;:&quot;PHP&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;php&quot;}\">body {\n\tcolor: #566787;\n\tbackground: #f5f5f5;\n\tfont-family: 'Varela Round', sans-serif;\n\tfont-size: 13px;\n}\n.table-responsive {\n    margin: 30px 0;\n}\n.table-wrapper {\n\tbackground: #fff;\n\tpadding: 20px 25px;\n\tborder-radius: 3px;\n\tmin-width: 1000px;\n\tbox-shadow: 0 1px 1px rgba(0,0,0,.05);\n}\n.table-title {        \n\tpadding-bottom: 15px;\n\tbackground: #435d7d;\n\tcolor: #fff;\n\tpadding: 16px 30px;\n\tmin-width: 100%;\n\tmargin: -20px -25px 10px;\n\tborder-radius: 3px 3px 0 0;\n}\n.table-title h2 {\n\tmargin: 5px 0 0;\n\tfont-size: 24px;\n}\n.table-title .btn-group {\n\tfloat: right;\n}\n.table-title .btn {\n\tcolor: #fff;\n\tfloat: right;\n\tfont-size: 13px;\n\tborder: none;\n\tmin-width: 50px;\n\tborder-radius: 2px;\n\tborder: none;\n\toutline: none !important;\n\tmargin-left: 10px;\n}\n.table-title .btn i {\n\tfloat: left;\n\tfont-size: 21px;\n\tmargin-right: 5px;\n}\n.table-title .btn span {\n\tfloat: left;\n\tmargin-top: 2px;\n}\ntable.table tr th, table.table tr td {\n\tborder-color: #e9e9e9;\n\tpadding: 12px 15px;\n\tvertical-align: middle;\n}\ntable.table tr th:first-child {\n\twidth: 60px;\n}\ntable.table tr th:last-child {\n\twidth: 100px;\n}\ntable.table-striped tbody tr:nth-of-type(odd) {\n\tbackground-color: #fcfcfc;\n}\ntable.table-striped.table-hover tbody tr:hover {\n\tbackground: #f5f5f5;\n}\ntable.table th i {\n\tfont-size: 13px;\n\tmargin: 0 5px;\n\tcursor: pointer;\n}\t\ntable.table td:last-child i {\n\topacity: 0.9;\n\tfont-size: 22px;\n\tmargin: 0 5px;\n}\ntable.table td a {\n\tfont-weight: bold;\n\tcolor: #566787;\n\tdisplay: inline-block;\n\ttext-decoration: none;\n\toutline: none !important;\n}\ntable.table td a:hover {\n\tcolor: #2196F3;\n}\ntable.table td a.edit {\n\tcolor: #FFC107;\n}\ntable.table td a.delete {\n\tcolor: #F44336;\n}\ntable.table td i {\n\tfont-size: 19px;\n}\ntable.table .avatar {\n\tborder-radius: 50%;\n\tvertical-align: middle;\n\tmargin-right: 10px;\n}\n.pagination {\n\tfloat: right;\n\tmargin: 0 0 5px;\n}\n.pagination li a {\n\tborder: none;\n\tfont-size: 13px;\n\tmin-width: 30px;\n\tmin-height: 30px;\n\tcolor: #999;\n\tmargin: 0 2px;\n\tline-height: 30px;\n\tborder-radius: 2px !important;\n\ttext-align: center;\n\tpadding: 0 6px;\n}\n.pagination li a:hover {\n\tcolor: #666;\n}\t\n.pagination li.active a, .pagination li.active a.page-link {\n\tbackground: #03A9F4;\n}\n.pagination li.active a:hover {        \n\tbackground: #0397d6;\n}\n.pagination li.disabled i {\n\tcolor: #ccc;\n}\n.pagination li i {\n\tfont-size: 16px;\n\tpadding-top: 6px\n}\n.hint-text {\n\tfloat: left;\n\tmargin-top: 10px;\n\tfont-size: 13px;\n}    \n\/* Custom checkbox *\/\n.custom-checkbox {\n\tposition: relative;\n}\n.custom-checkbox input[type=&quot;checkbox&quot;] {    \n\topacity: 0;\n\tposition: absolute;\n\tmargin: 5px 0 0 3px;\n\tz-index: 9;\n}\n.custom-checkbox label:before{\n\twidth: 18px;\n\theight: 18px;\n}\n.custom-checkbox label:before {\n\tcontent: '';\n\tmargin-right: 10px;\n\tdisplay: inline-block;\n\tvertical-align: text-top;\n\tbackground: white;\n\tborder: 1px solid #bbb;\n\tborder-radius: 2px;\n\tbox-sizing: border-box;\n\tz-index: 2;\n}\n.custom-checkbox input[type=&quot;checkbox&quot;]:checked + label:after {\n\tcontent: '';\n\tposition: absolute;\n\tleft: 6px;\n\ttop: 3px;\n\twidth: 6px;\n\theight: 11px;\n\tborder: solid #000;\n\tborder-width: 0 3px 3px 0;\n\ttransform: inherit;\n\tz-index: 3;\n\ttransform: rotateZ(45deg);\n}\n.custom-checkbox input[type=&quot;checkbox&quot;]:checked + label:before {\n\tborder-color: #03A9F4;\n\tbackground: #03A9F4;\n}\n.custom-checkbox input[type=&quot;checkbox&quot;]:checked + label:after {\n\tborder-color: #fff;\n}\n.custom-checkbox input[type=&quot;checkbox&quot;]:disabled + label:before {\n\tcolor: #b8b8b8;\n\tcursor: auto;\n\tbox-shadow: none;\n\tbackground: #ddd;\n}\n\/* Modal styles *\/\n.modal .modal-dialog {\n\tmax-width: 400px;\n}\n.modal .modal-header, .modal .modal-body, .modal .modal-footer {\n\tpadding: 20px 30px;\n}\n.modal .modal-content {\n\tborder-radius: 3px;\n\tfont-size: 14px;\n}\n.modal .modal-footer {\n\tbackground: #ecf0f1;\n\tborder-radius: 0 0 3px 3px;\n}\n.modal .modal-title {\n\tdisplay: inline-block;\n}\n.modal .form-control {\n\tborder-radius: 2px;\n\tbox-shadow: none;\n\tborder-color: #dddddd;\n}\n.modal textarea.form-control {\n\tresize: vertical;\n}\n.modal .btn {\n\tborder-radius: 2px;\n\tmin-width: 100px;\n}\t\n.modal form label {\n\tfont-weight: normal;\n}\t<\/pre><\/div>\n\n\n\n<p>Also includes in Jquery javascript to launch the modal: use this jquery code at the top of the page using script tag:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;php&quot;,&quot;mime&quot;:&quot;text\/x-php&quot;,&quot;theme&quot;:&quot;midnight&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;Javascript&quot;,&quot;language&quot;:&quot;PHP&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;php&quot;}\">$(document).ready(function(){\n\t\/\/ Activate tooltip\n\t$('[data-toggle=&quot;tooltip&quot;]').tooltip();\n\t\n\t\/\/ Select\/Deselect checkboxes\n\tvar checkbox = $('table tbody input[type=&quot;checkbox&quot;]');\n\t$(&quot;#selectAll&quot;).click(function(){\n\t\tif(this.checked){\n\t\t\tcheckbox.each(function(){\n\t\t\t\tthis.checked = true;                        \n\t\t\t});\n\t\t} else{\n\t\t\tcheckbox.each(function(){\n\t\t\t\tthis.checked = false;                        \n\t\t\t});\n\t\t} \n\t});\n\tcheckbox.click(function(){\n\t\tif(!this.checked){\n\t\t\t$(&quot;#selectAll&quot;).prop(&quot;checked&quot;, false);\n\t\t}\n\t});\n});<\/pre><\/div>\n\n\n\n<p class=\"has-background\" style=\"background-color:#eaf1f3\">If you\u2019re planning to revamp your online presence, don\u2019t miss exploring our\u00a0<a href=\"https:\/\/www.appfinz.com\/website-designing-company-in-delhi\"><strong>website designing services<\/strong><\/a>\u00a0and custom\u00a0<strong><a href=\"https:\/\/www.appfinz.com\/website-development-company-in-delhi\">website development<\/a><\/strong>\u00a0solutions tailored to your business needs.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello Nerds, In this blog section, we will see basic example of how to make<\/p>\n","protected":false},"author":1,"featured_media":1074,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[150],"tags":[],"class_list":["post-1073","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery"],"_links":{"self":[{"href":"https:\/\/www.appfinz.com\/blogs\/wp-json\/wp\/v2\/posts\/1073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appfinz.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appfinz.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appfinz.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appfinz.com\/blogs\/wp-json\/wp\/v2\/comments?post=1073"}],"version-history":[{"count":2,"href":"https:\/\/www.appfinz.com\/blogs\/wp-json\/wp\/v2\/posts\/1073\/revisions"}],"predecessor-version":[{"id":1365,"href":"https:\/\/www.appfinz.com\/blogs\/wp-json\/wp\/v2\/posts\/1073\/revisions\/1365"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.appfinz.com\/blogs\/wp-json\/wp\/v2\/media\/1074"}],"wp:attachment":[{"href":"https:\/\/www.appfinz.com\/blogs\/wp-json\/wp\/v2\/media?parent=1073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appfinz.com\/blogs\/wp-json\/wp\/v2\/categories?post=1073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appfinz.com\/blogs\/wp-json\/wp\/v2\/tags?post=1073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}