All Projects → jayelkaake → valid8

jayelkaake / valid8

Licence: GPL-3.0 License
Valid8 - Super Simple Bootstrap Form Valiation

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to valid8

Form Object
Form object to use with Vue components for sending data to a Laravel application using axios.
Stars: ✭ 73 (+329.41%)
Mutual labels:  validation, forms
React Native Merlin
🧙 Simple web-like forms in react native.
Stars: ✭ 83 (+388.24%)
Mutual labels:  validation, forms
Laravel Multistep Forms
Responsable Multistep Form Builder for Laravel
Stars: ✭ 76 (+347.06%)
Mutual labels:  validation, forms
Usetheform
React library for composing declarative forms, manage their state, handling their validation and much more.
Stars: ✭ 40 (+135.29%)
Mutual labels:  validation, forms
react-form-validation-demo
React Form Validation Demo
Stars: ✭ 88 (+417.65%)
Mutual labels:  validation, forms
Formik Alicante
Formik slides & demos from React Alicante
Stars: ✭ 47 (+176.47%)
Mutual labels:  validation, forms
React Inform
Simple controlled forms with validations in react
Stars: ✭ 81 (+376.47%)
Mutual labels:  validation, forms
Colander
A serialization/deserialization/validation library for strings, mappings and lists.
Stars: ✭ 408 (+2300%)
Mutual labels:  validation, forms
Validation
Framework agnostic validation library for PHP
Stars: ✭ 146 (+758.82%)
Mutual labels:  validation, forms
Vue Formulate
⚡️ The easiest way to build forms with Vue.
Stars: ✭ 1,947 (+11352.94%)
Mutual labels:  validation, forms
React Final Form
🏁 High performance subscription-based form state management for React
Stars: ✭ 6,781 (+39788.24%)
Mutual labels:  validation, forms
Redux Form
A Higher Order Component using react-redux to keep form state in a Redux store
Stars: ✭ 12,597 (+74000%)
Mutual labels:  validation, forms
Winterfell
Generate complex, validated and extendable JSON-based forms in React.
Stars: ✭ 787 (+4529.41%)
Mutual labels:  validation, forms
Awesomevalidation
Android validation library which helps developer boil down the tedious work to three easy steps.
Stars: ✭ 1,093 (+6329.41%)
Mutual labels:  validation, forms
Typesystem
Data validation, serialization, deserialization & form rendering. 🔢
Stars: ✭ 416 (+2347.06%)
Mutual labels:  validation, forms
Wtforms
A flexible forms validation and rendering library for Python.
Stars: ✭ 1,214 (+7041.18%)
Mutual labels:  validation, forms
Forms
📝 Generating, validating and processing secure forms in PHP. Handy API, fully customizable, server & client side validation and mature design.
Stars: ✭ 272 (+1500%)
Mutual labels:  validation, forms
React Hook Form
📋 React Hooks for form state management and validation (Web + React Native)
Stars: ✭ 24,831 (+145964.71%)
Mutual labels:  validation, forms
Play2 Html5tags
HTML5 form tags module for Play Framework
Stars: ✭ 101 (+494.12%)
Mutual labels:  validation, forms
Liform React
Generate forms from JSON Schema to use with React (& redux-form)
Stars: ✭ 167 (+882.35%)
Mutual labels:  validation, forms

Simple Bootstrap Responsive Form Validation

Valid8 is a super simple javascript for validation script built using jQuery that works really well with responsive bootstrap websites.

What differs this validation script from other ones is that it it does not require any javascript or HTML to be written in your pages where you want validation to occur. Just Include the script, add class names to your HTML elements and you're good to go!

Requirements

jQuery 1.9+ or Bootstrap 2+

Installation

Install with bower

bower install valid8 then include js/valid8.js or js/valid8.min.js wherever you want it.

Install normally

  1. Git clone the repo (fork if you think you'll contribute).
  2. Include the valid8.js file after jQuery and Bootstrap (if you're using bootstrap):
<script src="js/valid8.min.js"></script>

Usage

Just add the CSS class name of the validation you want to each of your fields and valid8 will automatically prevent form submissions until the data is valid.

Here are the validation classes available:

Class Name Erorr Message
required This is a required field.
validate-number Please enter a valid number in this field.
validate-digits Please use numbers only in this field. please avoid spaces or other characters such as dots or commas.
validate-alpha Please use letters only (a-z) in this field.
validate-alphanum Please use only letters (a-z) or numbers (0-9) only in this field. No spaces or other characters are allowed.
validate-date Please enter a valid date.
validate-email Please enter a valid email address. For example [email protected].
validate-url Please enter a valid URL.
validate-date-au Please use this date format: dd/mm/yyyy. For example 17/03/2006 for the 17th of March, 2006.
validate-currency-dollar Please enter a valid $ amount. For example $100.00 .
validate-credit card Please enter a valid credit card number.
Note: This will do some standard format checks on credit card numbers with or without spaces (doesn't matter). Obviously don't use this as your only credit card validity check.

That's it!

##Examples ###Email Address Example

<input class="form-control required validate-email" placeholder="Login E-mail" name="email" type="email">

Result when not an email:

###Website URL Example

<input class="form-control required validate-url" placeholder="Your website URL. Example: http://www.magecredit.com" name="url" type="url">

Result when not a website:

Signup Form Example

We wrote a demo for you at [demo/index.html][1] [1]: demo/index.html

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].