You can define your field options and then write some code to create the inputing components. Please refer to the code below:
var fields = [{
label: 'Name:',
type: 'textbox',
width: 300
},{
label: 'Subject:',
type: 'textbox',
width: 300
},{
label: 'Language:',
type: 'combobox',
width: 300
}];
for(var i=0; i<fields.length; i++){
var opts = fields[i];
var input = $('<input>').appendTo('#ff').wrap('<div class="row"></div>');
input[opts.type](opts);
}