Ma allo stesso questo ti restituisce un valore?!

codice:
alert(document.getElementById('prezzo[2]'));