deserilizeForm: function (DIVID, obj) {//fill debugger for (var i in obj) { var id = i; var val = obj[i]; var control = $('#' + DIVID + ' #' + id + ' [name="' + id + '"'); switch (contol.type) { case 'text': control.val(val); // code break; default: // code } } },
{ "index": 1, "firstName": "John", "lastName": "Jones", "joined": "April 2015", "Country": "Amman", "Gender": "Male", "Active": "False", "NOC": 4 }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)