I've got instructions to add a jquery code snippet to a website page - specifically in the header of the HTML, but after copying and pasting it between the <head> ... </head> tags I still can't get it to work? It simply spits the code out on the page, in text form, for everyone to see, but doesn't appear to be doing anything.
We Rock Your Web Forum » Markup Languages » HTML
How to add jquery to page?
(2 posts)-
Posted 1 year ago #
-
Posted 1 year ago
-
Put your jquery code in a file such as jquery.js, then upload the file to your website in a folder such as /scripts/, and finally, call it from within your web page by including the following JavaScript insert in your head tags:
<script src="/scripts/jquery.js" type="text/javascript"></script>Posted 1 year ago #