- Downloading UI Library from its official website
- Downloading UI Library from CDNs
Download UI Library from Its Official Website
When you open the link http://jqueryui.com/, you will see there are three options to download JqueryUI library −- Custom Download − Click on this button to download a customized version of library.
- Stable − Click on this button to get the stable and latest version of JqueryUI library.
- Legacy − Click on this button to get the previous major release of the JqueryUI library.
Custom Download with Download Builder
Using Download Builder, you can create a custom build to include only those portions of the library that you need. You can download this new customized version of JqueryUI, depending on the chosen theme. You will see the following screen (same page is split into two images) −This is useful when you require only specific plugins or features of the JqueryUI library. The directory structure of this version is shown in the following figure −
Stable download
Legacy download
Download UI Library from CDNs
We are using the CDN versions of the library throughout this tutorial.
Example
<link href = "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css"
rel = "stylesheet">
<script src = "https://code.jquery.com/jquery-1.10.2.js"></script>
<script src = "https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
- The first line, adds jQuery UI theme (in our case ui-lightness) via CSS. This CSS will make our UI stylish.
- Second line, adds the jQuery library, as jQuery UI is built on top of jQuery library.
- Third line, adds the jQuery UI library. This enables jQuery UI in your page.
<script type = "text/javascript">
$(function () {
$('#dialogMsg').dialog();
});
</script>
<body>
<form id = "form1" runat = "server">
<div id = "dialogMsg" title = "First JqueryUI Example">
Hello this is my first JqueryUI example.
</div>
</form>
</body>
<!DOCTYPE html>
<html>
<head>
<link href = "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css"
rel = "stylesheet">
<script src = "https://code.jquery.com/jquery-1.10.2.js"></script>
<script src = "https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script type = "text/javascript">
$(function () {
$('#dialogMsg').dialog();
});
</script>
</head>
<body>
<form id = "form1" runat = "server">
<div id = "dialogMsg" title = "First JqueryUI Example">
Hello this is my first JqueryUI example.
</div>
</form>
</body>
</html>


