Submit your widget

Simple jQuery Form Assisted Fill Plugin

Created 9 years ago   Views 19032   downloads 3289    Author makoto
Simple jQuery Form Assisted Fill Plugin
View DemoDownload 117.5 KB
144
Share |

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

Code Example

$("#btnExample1").click(function() {
var user = {
"name" : "Makoto Hashimoto",
   "email" : "makoto@makoto.blog.br",
   "phone" : {
   "codeArea" : "+55",
   "number" : "2755555555"
   },
   "date1": "03/30/1981",
   "date2": "354769200000",  // 1981-03-30 in milliseconds
   "gender" : "M",
   "admin" : "Y",
   "rules" : [
   {"id" : "1", "name": "Admin"},
   {"id" : "3", "name": "Developer"}
   ]
};
   $("#form1").fill(user);
});

Tag: form