The Wayback Machine - https://web.archive.org/web/20200911215751/https://github.com/topics/form-validation
Skip to content
#

form-validation

Here are 646 public repositories matching this topic...

BunnyJS - Lightweight native (vanilla) JavaScript (JS) and ECMAScript 6 (ES6) browser library, package of small stand-alone components without dependencies: FormData, upload, image preview, HTML5 validation, Autocomplete, Dropdown, Calendar, Datepicker, Ajax, Datatable, Pagination, URL, Template engine, Element positioning, smooth scrolling, routing, inversion of control and more. Simple syntax and architecture. Next generation jQuery and front-end framework. Documentation and examples available.

  • Updated May 18, 2019
  • JavaScript
Herteby
Herteby commented Oct 24, 2019

For a long time I thought this was impossible to do without writing toString/fromString functions for your custom types, but I just realized that you can make it work by instead using the list index of the options as the "value", and then in the onChange decoder use that index to retrieve the item from the passed in options list.

Here's a demo: https://ellie-app.com/7253Q8THR2xa1

Improve this page

Add a description, image, and links to the form-validation topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the form-validation topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.