simply autofill an empty form with data (jQuery plugin)
JavaScript PHP CSS
Switch branches/tags
Nothing to show
Latest commit f3640c1 Feb 12, 2014 @balda balda add bower.json

README.md

jQuery form autofill

jQuery plugin to simply autofill an empty form with data.

Documentation

See complete documentation and demo

Usage

You have a form

<form id="f">
    name <input type="text" name="name">
    email <input type="text" name="email">
    love jQuery
    <input type="radio" name="lovejquery" value="yes"> yes
    <input type="radio" name="lovejquery" value="no"> no
</form>

And data

var data = {
    "name": "John Doe",
    "email": "johndoe@mail.com",
    "lovejquery": "yes"
}

Autofill the form with data ? just do

$("#f").autofill( data );