var input = document.createElement('input');
var $input = $('<input class="form-control" placeholder="good day">')
var obj = {
param1: {name: 'nameInput', value: 'someWords', type: 'hidden'},
param2: {name: 'nameInput2', value: 'someWords2', type: 'hidden'},
};
function eachObj (obj) {
$.each(obj, function(param, val) {
console.log(param, val);
console.log(val.name, val.value, val.type)
});
}
eachObj(obj);