What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-19 13:50:04
laravel datatable format date column
$projects = Project::select('id', 'name', 'date_start', 'date_end'); return Datatables::of($projects) ->editColumn('date_start', function ($request) { return $request->date_start->format('Y-m-d'); // human readable format }) ->editCo... Add solution -
Javascript 2022-01-31 06:01:59
clear datatable initialize once data is fetch
if you're using DataTables 1.10.x, you can initialize the new table with additional option "destroy": true, see below : function fetchNews(context) { if(context!="") { $("#dailyNews").dataTable({ ... Add solution -
Html 2022-01-23 01:46:35
datatable src
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css"> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <script s... Add solution -
Other 2022-01-22 19:50:42
datatables.net
<link href="//cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css"> <script src="//cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script> <table... Add solution