[英]search box of jQuery Datatable has search text above the search box
I have a datatable as follows: 我有一个数据表,如下所示:
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">';
}
}],
});
This displays the search box as shown below: 这将显示搜索框,如下所示:
How to get that Filter text beside the search box 如何在搜索框旁边获取过滤器文本
Adding the following to the css file did the trick: 将以下内容添加到css文件即可达到目的:
.dataTables_filter input {
display: inline-block !important;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.