javascript - Include jQuery SDK in my project -


this question has answer here:

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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -