Dapatkan Input Type JS

var type = e.target.type;
Snippets