Email
Share

We Rock Your Web Forum » Markup Languages » HTML

How to add jquery to page?

(2 posts)
  1. miraculix

    member
    Joined: Aug '09
    Posts: 27

    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.

    Posted 1 year ago #

  2. Posted 1 year ago
  3. cwd

    senior admin
    Joined: Jul '09
    Posts: 225

    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 #

RSS feed for this topic

Reply

(required)

Allowed markup: BBcode blockquote code em strong ul ol li font strike center u hr.
You can also put code in between backtick ( ` ) characters.