I created a fresh Laravel project and added jquery file at:
rootproject/public/js/jquery-3.2.0.min.js
Now in welcome.blade.php
, in html header tag I am referencing it as:
<link href="" rel="stylesheet">
And put an alert()
message in document load function.
$( document ).ready(function() {
alert("my message");
});
But its not working. In console log it is showing error message:
ReferenceError: $ is not defined
Can anybody suggest how to fix it?
via M Idrees