[jQuery][Datatables] Sort DataTables with a Select field

Javascript :


$(document).ready(function () {
 var table = $('#datatable').DataTable({
 dom: 'lr<"table-filter-container">tip',
 initComplete: function (settings) {
 var api = new $.fn.dataTable.Api(settings);
 $('.table-filter-container', api.table().container()).append(

$('#table-filter select').on('change', function () {




<p id="table-filter" style="display:none">



                                        <option value="">All</option>







                                <table id="datatable" class="display table table-hover table-responsive" cellspacing="0" width="100%">




                                            <th>Assigné à</th>

                                            <th>Commencé le</th>

                                            <th>Dû dans</th>




Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: