codice:
var inputProdotto = form.querySelector(".prodotto");
Se ci sono più elementi però non va bene , non è mneglio un id univoco ?