Embed jQuery UI on a page using Google

Hi, I am currently using the Google API to enable jQuery in my sites as follows:

<script src="http://www.google.com/jsapi"></script> <script>google.load("jquery", "1.3.2");</script> 

How would I do the same for jQuery UI javascript and css files?

+6
javascript jquery jquery-ui google-api
source share
3 answers

For consistency with how you do this, you want:

 google.load("jquery", "1.3.2"); google.load("jqueryui", "1.7.2"); 

http://code.google.com/apis/ajaxlibs/documentation/index.html#jqueryUI

+6
source share

For jQuery user interface:

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

This is the latest version.

+14
source share

Since you are using the Google API, you can enable jQuery UI with the following code:

 google.load("jqueryui", "1.5.3"); 

Check out the documentation here .

You will need to host CSS themes on your server.

Hosting your own CSS files allows you to create fully customizable themes, watch the Theme movie .

+4
source share

All Articles