onclick="document.getElementById('id_prova').value =this.value"

inserisci anche l'id a prova1.