Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Using jQuery UI

Using jQuery UI

Once you download jQuery UI, you will get a zip archive containing the following files:

Using jQuery UI on web pages

Open in a text editor index.html, and you will see references to some external files: the theme, jQuery, and jQuery UI. Typically, you need to reference these three files in your page in order to use jQuery UI's form widgets and interactions:









Once you have referenced these necessary files, you can add some jQuery widgets to your page. For example, to create a datepicker widget, you need to add a text input to the page and then call .datepicker(), as shown below:

HTML:



JavaScript:

$( "#date" ).datepicker();

Example screenshot

For demos of jQuery UI widgets and interactions, visit jQuery UI Examples。