Getting this error, I have included the latest jquery file. Also, I have added this file in head section while I am calling jquery function in the body. Can't figure out what the problem is?
Here is my code to include jquery:
<script type="text/javascript" src="<?php echo base_url(); ?>assets/admin/js/vendor/jquery-3.3.1.min.js"></script>
and jquery call is:
$(document).ready(function() {
$("#submit").on("click", function (e) {
alert('test');
});
});
Error is: enter image description here
$
in the error message is referring to jQuery then this has absolutely nothing to do with CodeIgniter or PHP<?php echo base_url(); ?>assets/admin/js/vendor/jquery-3.3.1.min.js
? Maybe the jQuery file cannot be loaded.