0
내가이 데이터 테이블 정의DataTables - 대소 문자 구분
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
var table = $('#producersTableId').DataTable({
"dom": '<"top">rt<"bottom"lp><"clear">',
"autoWidth": false,
"order": [[1, 'asc']],
"columnDefs": [
{"targets": [0], "width": '25%'},
{"targets": [1], "width": '40%'},
{className: "dt-body-center" , "targets": [2], "width": '5%'},
{className: "dt-body-center" , "targets": [3], "width": '30%'},
]
});
table.columns().every(function() {
var that = this;
$('input', this.header()).on('keyup change', function() {
if (that.search() !== this.value) {
that
.search(this.value)
.draw();
}
});
});
});
주문 (대소 문자를 구분하지 주문)의 경우를 무시하도록 "order": [[1, 'asc']],
옵션의 방법이 있습니다 주문?
DataTables는 이미 대소 문자를 구분하지 않는 주문을 사용하고 있습니다. https://jsfiddle.net/seo3d9jc/ –