javascript - Include jQuery SDK in my project -
this question has answer here:
- adding jquery sublime text 2 2 answers
i using sublime text 2 on mac development, , not sure how include jquery sdk in project. have downloaded sdk already.
to include jquery or any other external js resource need use <script>
tag, example:
index.html:
<html> <head> <title>my first jquery page</title> <!--script src="/js/jquery.js" type="text/javascript"></script--> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { $("#test").html("it works!"); }); </script> </head> <body> <div id='test'></div> </body> </html>
commented out part locally stored jquery.js
Comments
Post a Comment