Loop elements of an object

for(var key in fields){
	var field = fields[key];
	$modal.find('.' + key).html(data[key]);
}