Home > Web Front-end > JS Tutorial > How to use jquery-ui

How to use jquery-ui

(*-*)浩
Release: 2019-05-30 10:07:23
Original
1799 people have browsed it

jQuery UI Using

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

/css/
/development-bundle/
/js/
index.html
Copy after login

How to use jquery-ui

Using jQuery UI on a web page

Open index.html in a text editor, you will see that there are some external files referenced: theme, jQuery and jQuery UI . Typically, you need to reference these three files in your page in order to use jQuery UI's widgets and interactive parts:

<link>
<script></script>
<script></script>
Copy after login

Once you have referenced these necessary files, you can add them to your Add some jQuery widgets to the page. For example, to make a datepicker widget, you would add a text input box to the page and then call .datepicker() as follows:

HTML:

<input>
Copy after login

JavaScript:

$( "#date" ).datepicker();
Copy after login

How to use jquery-ui

The above is the detailed content of How to use jquery-ui. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template