Mevrael / bunny

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.
https://bunnyjs.com
MIT License
486 stars 39 forks source link

Ignore input #19

Closed zslabs closed 7 years ago

zslabs commented 7 years ago

Is there an option to ignore certain inputs? With components like https://github.com/jshjohnson/Choices that may create additional form inputs to interact with them, I need control to ignore the <input> created to search lists.

Mevrael commented 7 years ago

Bunny Validation does only what you want from each input by using HTML5 validation and custom attributes like required.

So far you are not adding those attributes, you are removing any possibility of that input from being marked as invalid.

What I see from the Choices component is that they are adding inputs manually, but there are no any validation attributes used, so Bunny Form Validation will ignore them already.

zslabs commented 7 years ago

Awesome, thanks for confirming!