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

jQuery form autofill

jQuery plugin to simply autofill an empty form with data.


See complete documentation and demo


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

And data

var data = {
    "name": "John Doe",
    "email": "",
    "lovejquery": "yes"

Autofill the form with data ? just do

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