2.0.9 • Published 9 years ago

js-modern-form v2.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
9 years ago

version

Modern Form

A simple handler for forms that add classes on your form elements, so you can play with CSS. No jQuery required.


#Install

Using npm command, it’s as simple as this :

npm i js-modern-form

If you use bower, you can just do

$ bower i modern-form

Or you could just download the files on GitHub.

How to use

var modernForm = new ModernForm('.js-modern-form');
<form action="" class="js-modern-form">
	<!-- your form -->
</form>

You can pass either a html object, or a selector in a string.

Check the demo files for an example.

Options

You can also pass options to the plugin to change it’s default settings, like this:

var modernForm = new ModernForm('.js-modern-form', {
	inputSelector: '.input',
	classHasFocus: '.has-focus'
});
2.0.9

9 years ago

2.0.8

9 years ago

2.0.6

9 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago