<script href="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script>
console.log($);
console.log(jQuery);
</script>
I get a message that $ or jQuery is undefined: what’s wrong?
It’s just an empty index.html, with no other code.
You used the href attribute to include the script to the file.
href is an invalid attribute for <script></script> tags. Use src instead...
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
You have an error in your declaration. You should use
<script src="...">
instead of
<script href="">.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With