Hi, how can I send the code from example
Hi, how can I send the code from example
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
Hi, how can I send the code from example 1 in example 2 below. Thank you ..
EXAMPLE 1 = / * var toggler = document.getElementsByClassName ("caret"); var i; for (i = 0; i <toggler.length; i ++) {toggler [i] .addEventListener ("click", function () { this.parentElement.querySelector (". nested"). classList.toggle ("act"); this.classList.toggle ("caret-down");});} * /
EXAMPLE 2 = / * jQuery (function ($) (
var dataTable = $ ('# Page'). DataTable ((
"processing": true,
"serverSide": true,
"responsive": true,
'serverMethod': 'post',
"order": [],
"lengthMenu": [[-1, 10, 50, 100], ["All", 10, 50, 100]],
'language': {'url': 'KLasor / TR-en.json'},
"ajax": {url: "ServisData.php", type: "POST", dataType: "json"},
"columnDefs": [{"type": 'turkish', "targets": [0,2], "orderable": false,},],
});
}); * /