url2form.js
v1.0.0 form url query
url2form.js
A JavaScript library to fill a form with the current url queries.
It allows you to create JavaScript application with sharable states without having a back-end. Start filling your form, validate, bookmark the generated URL, and you'll be able to go back to this specific state later.
Quick start
npm install url2form.js
<form name="myFormName">
<input type="text" name="myInput" value="" />
<button>Validate</button>
</form>
<script>
url2form.init('myFormName');
</script>
If the URI is "?myInput=myValue" the input
will be valued with "myValue".
Every time you click on validate, you create a new URL to bookmark.
Projects using it
- Pajomatic: Help for French parents who pay a nanny
How to Contribute
- Star the project!
- Report a bug that you have found.
- Tweet and blog about
url2form.js
and Let me know about it. - Pull requests are also highly appreciated.
Author & Community
url2form.js
is under MIT License.
It was created & is maintained by Thomas ZILLIOX.
npm i [email protected]
Metadata
- MIT
- Whatever
- Thomas ZILLIOX
- released 9/4/2015