Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vebersol/jquery-custom-forms

A plugin to generate custom forms with accessibility
https://github.com/vebersol/jquery-custom-forms

Last synced: 4 months ago
JSON representation

A plugin to generate custom forms with accessibility

Awesome Lists containing this project

README

        

# jQuery Custom Forms

A plugin to generate accessible custom forms: select, radio, checkbox.

Demo: http://vebersol.net/demos/jquery-custom-forms/

# Usage

```html


Option 1
Option 2

$(function() {
$('form').customForm();
});

```

# API

### $.customForm(options)

Use this method to build the custom forms.

### Options

Options should be an object like:

```javascript
var options = {
prefix: 'my-own-prefix',
keyClass: 'my-own-key-class',
enableWrapper: false
};

$.customForm(options);
```

* **prefix:** (String)
A prefix to add to all class names used on elements created by this plugin.
*Default value: 'custom-form-'*

* **keyClass:** (String)
The class used to allow element to be replaced by a custom form element.
*Default value: 'cform'*

* **enableWrapper:** (String)
A boolean to enable a wrapper around the custom element and the original element. Very usefull to change position of the element.
*Default value: false*

# License

MIT License - http://www.opensource.org/licenses/MIT