Skip to content
jQuery UI

Interactions & Widgets API Reference

jQuery UI APIs — interaction behaviors (draggable, droppable, sortable) and UI widgets (accordion, datepicker, dialog, tabs).

By EZ4Code Team

Interactions

Interaction plugins that add drag-and-drop and reordering behaviors to elements.

$(el).draggable(options?)

Makes the selected elements draggable by mouse. Supports options like handle, axis, containment, and grid.

Returns: jQuery

$(el).droppable(options?)

Makes elements accept draggable drops; fires activate/over/out/drop/deactivate callbacks.

Returns: jQuery

$(el).sortable(options?)

Makes a list of children sortable by drag. Supports placeholder, connectWith, and update callback.

Returns: jQuery

instance('option', key, value)

Gets or sets an option on an existing interaction instance after initialization.

Returns: any | jQuery

Widgets

UI widgets built on the jQuery UI widget factory: accordion, datepicker, dialog, and tabs.

$(el).accordion(options?)

Turns nested headings + content panels into a collapsible accordion.

Returns: jQuery

$(el).datepicker(options?)

Attaches a popup datepicker to text inputs. Supports dateFormat, minDate, maxDate, onSelect.

Returns: jQuery

$(el).dialog(options?)

Opens the selected element as a floating, draggable, resizable modal dialog.

Returns: jQuery

$(el).tabs(options?)

Converts a list of links + content panels into a tabbed interface.

Returns: jQuery

More jQuery UI API References