I am using laravel 5.4 and Yajra Datatable but i cannot make it work .. I am having a problem with this "Uncaught TypeError: $(...).DataTable is not a function"
here is my code
<script src="https://datatables.yajrabox.com/js/jquery.min.js"></script>
$(function() {
$('#users-tbl').DataTable({
processing: true,
serverSide: true,
ajax: 'http://localhost/bostonbakers/public/employee/table',
columns: [
{data:'id'},
{data:'email'},
{data:'password'}
]
});
});
<script src="{{ asset('js/app.js') }}"></script>
What should i do?