I have three text fields with the names
when I click the first field I wish to set the value of all the three text fields with a function. I have tried the code below, but I can't make it work? Any ideas?Code:<input type=text name=t1 onclick="test();"> <input type=text name=t2> <input type=text name=t3>
Code:function test1(){ for (i=1;i<4; i++){ document.formName.t + i + .value=25; }




Reply With Quote