How to solve an error "oTable.draw is not a function" in filtering datatables?
I have a search form above the datatables. When I try to search, I have got the data shows in JSON format, not filtering the datatables. The error is Uncaught TypeError: oTable.draw is not a function Here is the javascript: $(document).ready(function(){ var oTable = $('#surat').DataTable({ processing: true, serverSide: true, ajax: { url: '{!! route("surat") !!}', data: function (d) { d.jenis_surat = $('input[name=jenis_surat]').val(); d.nomor_surat = $('input[name=nomor_surat]').val(); d.perihal = $('input[name=perihal]').val(); } }, columns: [ {data: 'no', name: 'no'}, {data: 'jenis_surat', n
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.