https://github.com/wbotelhos/populaty
jQuery Populaty - A Form Populator
https://github.com/wbotelhos/populaty
form form-populator json populator
Last synced: 2 months ago
JSON representation
jQuery Populaty - A Form Populator
- Host: GitHub
- URL: https://github.com/wbotelhos/populaty
- Owner: wbotelhos
- Created: 2013-05-19T20:57:47.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-09-25T02:29:45.000Z (over 11 years ago)
- Last Synced: 2025-02-12T02:11:46.486Z (4 months ago)
- Topics: form, form-populator, json, populator
- Language: JavaScript
- Homepage: http://wbotelhos.com/populaty
- Size: 221 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
Awesome Lists containing this project
README
# jQuery Populaty - A Form Populator - [wbotelhos.com/populaty](http://wbotelhos.com/populaty)
jQuery Populaty is a plugin to populate form from a JSON.
## Version
```
@version 0.1.2
@since 2013-05-08
@author Washington Botelho
@documentation wbotelhos.com/populaty
@twitter twitter.com/wbotelhos
```## Required Files
+ jquery.populaty.js
## Options
```js
checkable : ['checkbox', 'radio'] // Checkable fields.
exclude : ':submit, :reset, :button' // Field to be excluded from includeds.
include : ':input' // Fields to be included on population.
json : undefined // JSON data to populate the fields.
reset : true // Reset or not the form before populate.
selectable : ['select-one', 'select-multiple'] // Selectable fields.
typeful : [ // Typeful fields.
'color',
'date',
'datetime',
'datetime-local',
'email',
'hidden',
'month',
'number',
'password',
'range',
'search',
'tel',
'text',
'textarea',
'time',
'url',
'week'
]
```## Usage
```html
```
```js
$('form').populaty({ json: { number: 1 } });
```## Licence
The MIT License
## Donate
You can do it via [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=X8HEP2878NDEG&item_name=jQuery%20Populaty). Thanks! (: