Hi,
On my form I have suppose 10 text boxes with names
retailprice1
retailprice2
.
.
.
retailprice10
In my javascript function I want to dynamically get the values of those text boxes. I am trying to do something like following but I know it is not right. i will appreciate your help
for (i=1; i <=10; i++)
{
b="document.priceupdater.retailprice" +i+."value";
alert(b);
}
Thanks
On my form I have suppose 10 text boxes with names
retailprice1
retailprice2
.
.
.
retailprice10
In my javascript function I want to dynamically get the values of those text boxes. I am trying to do something like following but I know it is not right. i will appreciate your help
for (i=1; i <=10; i++)
{
b="document.priceupdater.retailprice" +i+."value";
alert(b);
}
Thanks