Use the DOM element’s tagName property:
var element_type = field[0].tagName;
Note that browsers are not entirely consistent about the case returned by tagName, so you should probably call toLowerCase to be safe: field[0].tagName.toLowerCase().