<!doctype html>
<html>
<body>
<div id="div1" style="border:3px red double; width:300px;">Roma</div>
<div id="div2" style="border:3px blue double; width:300px;">Latina</div>
<input type="text" id="testo1" value="Palermo" size=20><br>
<input type="text" id="testo2" value="Messina" size=20><br>
<script>
div2.value=div1.value;
testo2.value=testo1.value;
</script>
</body>
</html>
Desidero sapere perché:
la riga testo2.value=testo1.value; funziona,
mentre la riga div2.value=div1.value; non funziona
grazie
lanvoel