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": "[email protected]", "lovejquery": "yes" }
Autofill the form with data ? just do
$("#f").autofill( data );