Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/palkan/formerjs
JS (vanilla) lib to handle html form data as object
https://github.com/palkan/formerjs
Last synced: 2 days ago
JSON representation
JS (vanilla) lib to handle html form data as object
- Host: GitHub
- URL: https://github.com/palkan/formerjs
- Owner: palkan
- Created: 2014-03-04T11:16:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-28T15:55:00.000Z (over 10 years ago)
- Last Synced: 2024-10-19T13:01:08.877Z (25 days ago)
- Language: CoffeeScript
- Size: 246 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Former js
Simple lib to manipulate form data (read and write)## Deps
None## Dev Deps
NodeJS+Bower+Brunch## Features
* Parse form data as object
Example:
```
Sports
Politics
```
In your JS:
```
data = FormJS.parse(document.getElementById('post_form'));data = {
post:{
name: 'Name',
is_private: 'true',
category: 'Sports',
tags:[
'football',
'uefa'
]
}
}```
* Fill form data from object
* Use name transformers (e.g. Rails name parsers) and value parsers or build your own.
Example:
```
Sports
Politics
```