javascript - jQuery is not defined error in Firefox -
i following tutorial plus lesson on jquery. in video tutorial, code same in firefox @ end it's throwing referenceerror: jquery not defined
in firebug console.
this whole code -
<!doctype html> <html> <head> <title>day 1 jquery</title> <style> li {color:blue;} </style> </head> <body> <ul> <li>list item 1</li> <li>list item 2</li> <li>list item 3</li> <li>list item 4</li> <li>list item 5</li> </ul> <srcipt src="http://code.jquery.com/jquery-latest.js"></script> <script> jquery(document).ready(function(){ var list = jquery('ul li'); console.log(list); }); </script> </body> </html>
i looked @ no help: $ not defined error in firefox jquery
tutorials link - https://tutsplus.com/course/30-days-to-learn-jquery/
replace
<srcipt
with
<script
but shouldn't use jquery-latest in production : code might break when jquery changes. suggest point precise version.
Comments
Post a Comment