php - dataTables filter specific column without using footer -
php - dataTables filter specific column without using footer -
is there anyway search columns sec col without using filter?
i've tried using:
"aocolumndefs": [ { "bsearchable": false, "atargets": [ 1 ] }] "searchcols":[null, {"search":""}, null] here finish script:
$(document).ready(function(){ otable = $("#roles").datatable({ "processing":"true", "serverside": "true", "ajax": "roles", "columns":[ {data: 'id', name:'id'}, {data: 'name', name:'name'}, {data: 'link', name:'link'} {data: 'actions', name:'actions'} ], "oclasses": { "sfilter": "pull-right", "sfilterinput": "form-control input-rounded ml-sm" }, "dom": "<'row'<'col-md-6 hidden-xs'l><'col-md-6'f>r>t<'row'<'col-md-6'i><'col-md-6'p>>", "olanguage": { "slengthmenu": "_menu_", "sinfo": "showing <strong>_start_ _end_</strong> of _total_ entries" }, "searchcols":[null, {"search":""}, null] }); }); is there anyway can filter name column without using footer filter? because if not specific column filter, when tried search error because there actions column.
php jquery html ajax laravel-5
Comments
Post a Comment