How to add new custom filter in data table using PHP mysql jQuery ajax

Опубликовано: 30 Сентябрь 2024
на канале: Dinanath Singh
1,095
5

$(document).ready(function() {
var oTableClient = $('#client').dataTable({
searchHighlight: true,
"lengthMenu": [[-1, 25, 50], ["All", 25, 50]]
});
$('#client_cat_list').on('change', function () {
var client_cat_val=$('#client_cat_list').val();
//alert(client_cat_val);
if(client_cat_val=='*'){
oTableClient.fnFilter("");
}else{
oTableClient.fnFilter($.trim(client_cat_val));
oTableClient.fnDraw();
}
});
} );

facebook :   / dinanathsingh  
youtube :    / dinanath129  
Google plus : https://plus.google.com/u/0/111551527...
twitter :   / dinanath33  
linkedin :   / dinanath-singh-62145237