voila ma source test :
<html>
<script language="JavaScript">
function remplir() {
x=1
for(i=1;i<=2;i++) {
for(j=1;j<=4;j++) {
document.formu[i].tb[j].value=x;
x=x+1;
}
}
}
</script>
<body>
<input type='button' OnClick='remplir()' value='Remplir les textbox'><br>
formulaire 1 :
<form name="formu1">
textbox : 1
<input type="text" name="tb1" size="40" maxlength="256"><br>
textbox : 2
<input type="text" name="tb2" size="40" maxlength="256"><br>
textbox : 3
<input type="text" name="tb3" size="40" maxlength="256"><br>
textbox : 4
<input type="text" name="tb4" size="40" maxlength="256"><br>
</form>
formulaire 2
<form name="formu1">
textbox : 1
<input type="text" name="tb1" size="40" maxlength="256"><br>
textbox : 2
<input type="text" name="tb2" size="40" maxlength="256"><br>
textbox : 3
<input type="text" name="tb3" size="40" maxlength="256"><br>
textbox : 4
<input type="text" name="tb4" size="40" maxlength="256"><br>
</form>
</body>
</html>
mais sa marche pas mon document.formu[i].tb[j].value
alors comment faire pour parcourir mon formulaire avec ma boucle ????????
NIARF