Per-field playground

Set the options. Copy the code.

Pick a control, flip the switches and selects, and watch it update. Every field produces both a copy-paste HTML snippet with data-* attributes and a plain vanilla JavaScript call, so you can use whichever fits your project. Each tab also lists the instance methods and DOM events that control exposes.

Select options

Only the options for this control are shown.

Live preview

The demo uses the full build and re-initialises on every change.

Enhanced with initZidanSelects() from the data attributes.
getValue(): —

Copy code

HTML lists supported attributes; JavaScript carries every selected setting.

HTML · data attributes
JavaScript · vanilla

The JavaScript tab keeps the same native markup but removes the data-* attributes. Settings without a data attribute appear only in the JavaScript snippet.

Methods & events

The instance returned by the initializer.

Methods

    Events