jQuery Form Fill Plugin
Overview
The"jQuery Form Fill" fills forms from JSON objects.
-
Fills all kinds of html elements:
- text
- password
- hidden
- textarea
- checkbox
- radio
- select
-
Fills fields with jQueryUI Datepicker.
- Date in string format. Ex: "MM/DD/YYYY"
- Date in milliseconds
Quick Start Guide
$("#btnExample1").click(function() {
var user = {
"name" : "Makoto Hashimoto",
"email" : "makoto@makoto.blog.br",
"phone" : {
"codeArea" : "+55",
"number" : "2755555555"
},
"date1": "03/30/1981", // (mm/dd/yyyy)
"date2": "354769200000", // 1981-03-30 in milliseconds
"gender" : "M"
"admin" : "Y",
"rules" : [
{"id" : "1", "name": "Admin"},
{"id" : "3", "name": "Developer"}
]
};
$("#form1").fill(user);
});