Enrico,
As already said, plus it can be proceduralised in a loop as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Airshow :: Untitled</title>
<script>
onload = function(){
for (var i=1; i<=3; i++) {
var field = document.getElementById('ip_'+i);
if(field) {
field.value = document.getElementById('cellText'+i).innerHTML;
}
}
}
</script>
</head>
<body>
<table border>
<tr><td id='cellText1' >Text 1</td></tr>
<tr><td id='cellText2' >Text 2</td></tr>
<tr><td id='cellText3' >Text 3</td></tr>
</table>
<form>
<input id="ip_1" /><br>
<input id="ip_2" /><br>
<input id="ip_3" /><br>
</form>
</body>
</html>
Airshow Last edited by Airshow; Jun 4th, 2009 at 8:46 am.
Reputation Points: 300
Solved Threads: 357
WiFi Lounge Lizard
Offline 2,523 posts
since Apr 2009