0
Я использую DataTables & Bootstrap в странице JSPDataTables & Bootstrap пагинация
https://datatables.net/manual/styling/bootstrap-simple.html
, и я хотел бы добавить функцию OnChange в селекторе Показать N записей
Возможно ли это? ??????????
это код в моем JSP:
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
var table = $('#deviceTableId').DataTable({
"dom": '<"top">rt<"bottom"lp><"clear">',
"autoWidth": false,
"columnDefs": [
{"targets": 'nosort', "orderable": false, "width": '30%'},
{"targets": [0], "width": '20%'},
{"targets": [1], "width": '35%'},
{"targets": [2], "width": '15%'},
]
});
table.columns().every(function() {
var that = this;
$('input', this.header()).on('keyup change', function() {
if (that.search() !== this.value) {
that
.search(this.value)
.draw();
}
});
});
});
</script
>
Можете ли вы показать нам, что вы пробовали? – YMomb