Friday, 15 April 2011

javascript - why is jquery not loading -


When I try to load jquery through the cdn, then it works perfectly

  script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"  

However, when I try to load it using local files, it does not work

  type the script = "text / javascript" src = "javascripts / Jquery-1.11.2.min.js " 

and displays this error:

  Dashhe Syntax Error: Unexpected Tokens & lt; Jquery-1.11.2.min.js: 1  

I should say that my server is running on node.js

It seems that there is a syntax error with your tag.

Try it out.

  & lt; Script type = "text / javascript" src = "javascript / jquery-1.11.2.min.js" & gt; & Lt; / Script & gt;  

No comments:

Post a Comment