Welcome Guest, Not a member yet? Register   Sign In
Uncaught ReferenceError: $ is not defined - Datepicker - Codeigniter 3
#4

One problem might be the use of the "defer" attribute with the <script> elements. This means that jQuery won't load until after all the other html loads.

But this bit of code will try run as soon as the view is loaded.  
Code:
$( "#datepicker" ).datepicker({inline: true});
Of course, it fails - jQuery hasn't loaded yet so $ is not defined.

Remove the defer attr from the <script> tags and see if that helps.

You might get new errors that we can address later.
Reply


Messages In This Thread
RE: Uncaught ReferenceError: $ is not defined - Datepicker - Codeigniter 3 - by dave friend - 04-18-2019, 10:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB