Plain text1<br><script src = "http://cdn.datatables.net/1.10.18/js/jquery.dataTables.min.js" defer ></script>
//Just add defer at the end of this script
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.dataTables.min.js" type="text/javascript"></script>
There could be multiple reasons for this error.
1. jQuery DataTables library is missing.
2. jQuery library is loaded after jQuery DataTables.
3. Multiple versions of jQuery library is loaded.
$("#yourTableID").DataTable(); // check "datatable" spelling to "DataTable()"
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.js" defer></script>