1.0.0 • Published 7 years ago
jquery-background v1.0.0
jQuery Formulator v1.0.1
Installation
Dependencies
NPM
npm install jquery-formulator --save-dev
Webpack
require('jquery-formulator');
jQuery
$(document).ready(function(){
$('form').formulator();
});
HTML
Validation
You must add the class .form-validate
<form action="" class="form-validate">
...
<input type="text" name="firstname">
</form>
Ajax
You must add the class .form-ajax
<form action="" class="form-ajax">
...
<input type="text" name="firstname">
</form>
Both
Example with both classes
<form action="" class="form-ajax form-validate">
...
<input type="text" name="firstname">
</form>
1.0.0
7 years ago