Holen Sie sich Eingabetyp JS

var type = e.target.type;
Snippets