Documentation · guides & reference

Everything you need to build with ZidanForm.

Zero-dependency form enhancement: select, checkbox, switch, radio, file upload, text, number, phone, date and range inputs — with input icons, steppers, upload progress, async validation, remote select pagination, RTL support and TypeScript declarations. Start with the interactive demo or the field playground, then dive into the reference.

Input icons, number stepper, phone formatting and range controls in the ZidanForm demo
Advanced options & API reference Initialization and option precedence, async select pagination, tags, Promise validation, uploads, events, lifecycle, RTL, TypeScript and copyable HTML/JavaScript examples. Field playground Pick one control, toggle its options, preview it live and copy the matching HTML attributes or vanilla JavaScript call. AJAX & remote data demo Declarative data-zidan-fetch-url against a real API, plus a hand-written fetchOptions example with paging, abort and cache state on screen. Controls & options reference Every control family in one place: the options you reach for most, the two ways to initialise a field, and live examples — with links into the playground for the remaining options and the advanced reference for callbacks and the API. Static HTML & WordPress cookbook Complete copy-paste pages for plain HTML, select-only and file-only builds, ID/class targeting, WordPress functions.php, Shopify asset_url + Liquid sections, and troubleshooting for page builders and caching plugins. Shopify product-page demo A mock storefront product form: variant combobox, stepper, gift-wrap switch, tile radios and an upload dropzone — with the Liquid snippets to install it in a theme, and what Shopify's checkout does not allow. Which files should I load? Only want a select, or only a file upload? Load only that build — you do not need the full bundle. The complete form JS and CSS is for forms that enhance every input at once. Why ZidanForm & comparison Feature matrix against Select2, Choices.js, Tom Select, Slim Select and Bootstrap, plus benefits, trade-offs and migration notes. Options & data attributes Every JS option, data attribute, callback, event and instance method — remote pagination and cache controls, no-JS init by marker class, form scope, data-zidan-options JSON and config targets, in the full build and both subsets. TypeScript declarations ship with the package. Validation compatibility Native constraint validation, jQuery Validation, JustValidate, Parsley and double-submit guards, with copyable integration patterns. Live validation test bench Run the same form through native constraints, jQuery Validation, JustValidate and Parsley, then inspect each result live. Theming Token reference, five presets, layouts, framework adapters and custom themes. Framework integration React, Next.js (with SSR), Vue, Angular and state-sync patterns. Select-only & file-only builds Trimmed JS and matching CSS for pages that only need a select or a file upload, with every theme and framework adapter included. Build & publish Repository layout, scripts, dist output, npm publishing and GitHub Pages.

Markdown guides open rendered on GitHub; the demo, the field playground, the Shopify product-page demo and the validation bench run here on GitHub Pages. Source: github.com/akhtar1985/zidan-select.