Hello,
The way I solve this kind of problem is to give my elements an ID.
In Your case that could be "ID" followed by cnt.
Then you can retrieve all of that elements by the getElementById
method.
Good luck,
Martin
> Hello Friends,
> I am using textboxes in my code. I develop the names of textboxes runtime
> for e.g.
>
> <%
> dim cnt
> 'in loop
> cnt = cnt + 1
> %>
> <INPUT name="txt<%=cnt%>" >
>
> the above code is in loop so cnt value increases to say n.
> now before submitting the data i want to Validate the data for Proper
> currency value. How do I read the value of these textboxes. I have written a
> code:
>
> document.all.item(cnt).value
> 'cnt value increasing in a loop
>
> This is working fine with IE but this is not working with Netscape 4.51. How
> do I get values and other properties of these textboxes (in javascript).
>
> Arti