我有一个数据表,如下:
var exTable1 = $("#exTable").DataTable({
"language": {
"search": "Filter",
"searchPlaceholder": "search",
"loadingRecords": "",
},
data: datasrc
"dom": '<"top"lf>rt<"bottom"p><"clear">',
"select": true,
"processing": true,
"scrollX": true,
"scrollY": 80,
'columnDefs': [{
'targets': 0,
'orderable': false,
'className': 'dt-body-center',
'render': function(data, type, full, meta) {
return '<input type="checkbox">';
}
}],
});
如何在搜索框旁边获取过滤文字
答案 0 :(得分:0)
将以下内容添加到css文件即可:
.dataTables_filter input {
display: inline-block !important;
}