3 ways to add the jQuery library on your site.

Hello,

In this post i’ll show 3 ways to load the jQuery lib in your site. Let’s go:

1. Loading locally

To use this method you have to download the last version of jQuery library in your official website in this link: jQuery lib.

And to load in your HTML code, use like that:

<script type="text/javascript" src="path_to_you/jquery-latest.js"></script>

2. Loading online: first method

To  load online directly in the first method you’ll load from the official jQuery site, from a direct link provided by them.

Your code have to be like this:

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>

3. Loading online: second method

The second method to load a online hosted jQuery lib is load this from ajax.googleapis.com.

Your code have to be like this:

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

That’s it! If you know another way to do this tell me on contact that i add in this post with your refference 😀

See ya

Advertisements
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: