jQuery UI Tutorial

jQuery UI widgets

jQuery UI is a user-interface library built on top of jQuery. It provides widgets, interactions, effects and themeable components such as Datepicker, Accordion, Dialog, Autocomplete, Draggable and Tabs.

jQuery itself is still required first. The jQuery UI JavaScript and theme CSS are then loaded after it.

Load jQuery and jQuery UI Top ↑

The section examples are being modernized against jQuery 4.0.0 and jQuery UI 1.14.2.

<link rel="stylesheet"
      href="https://code.jquery.com/ui/1.14.2/themes/base/jquery-ui.css">

<script src="https://code.jquery.com/jquery-4.0.0.min.js"></script>
<script src="https://code.jquery.com/ui/1.14.2/jquery-ui.min.js"></script>

Load the libraries once on a page. Do not include another copy of jQuery later in the footer, because replacing the active jQuery instance can break already-initialized plugins.

Create Your First jQuery UI Widget Top ↑

$( function () {
    $( "#accordion" ).accordion();
});
<div id="accordion">
    <h3>Section 1</h3>
    <div>First panel content</div>

    <h3>Section 2</h3>
    <div>Second panel content</div>
</div>

Continue with the Accordion tutorial →

jQuery UI Themes Top ↑

The theme CSS controls the visual styling used by jQuery UI widgets. You can use the standard CDN themes or configure a theme with ThemeRoller.

Open ThemeRoller · Try the existing theme-selection demo

<link rel="stylesheet"
      href="https://code.jquery.com/ui/1.14.2/themes/humanity/jquery-ui.css">

jQuery UI Tutorials Top ↑

Widget / interactionWhat it does
AccordionExpand and collapse sections of content.
DatepickerDisplay a calendar for date selection.
AutocompleteSuggest matching words or records as the user types.
ControlgroupGroup related controls with consistent jQuery UI styling.
CheckboxradioStyle checkbox and radio inputs as themeable controls.
SliderSelect a value or range by moving a handle.
DraggableMake an element movable with the pointer.
DroppableCreate targets that accept draggable elements.
DialogDisplay content in a configurable dialog window.
MenuBuild keyboard-accessible menus and submenus.
ProgressbarShow completion or process progress.
TabsGroup related content into navigable panels.
TooltipShow contextual help when users interact with elements.
SelectableSelect one or more items with pointer/keyboard interaction.
ResizableLet users resize elements through handles.

jQuery UI easing options →

Video Tutorials on jQuery UI Top ↑

The original page loaded the YouTube playlist through the YouTube Data API at runtime. The playlist is now embedded directly, so the tutorial does not expose an API key or depend on a server-side API request every time the page loads.

Recommended Learning Path Top ↑

  1. Start with Accordion or Datepicker.
  2. Learn data-assisted input with Autocomplete.
  3. Practice interactions with Draggable and Droppable.
  4. Build interface components with Dialog, Tabs and Tooltip.
  5. Use Progressbar for task status and Slider for range/value selection.





plus2net.com






✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer