jquery vs pure javascript
$('#contents') //return a jQuery Object
$('#contents')[0] //return a HTML DOM Object
document.getElementById('contents') //return a HTML DOM Object
$("#"+field)[0]
document.getElementById(field)
$('input[type="email"]')
document.querySelector('input[type="email"]')