HTML:For loop in javascript

freemanrm

New Member
I`m trying to add three labels and three controls in a row.Following is code ->\[code\]<html><body><tr><%dim CountFlgCountFlg = 0for i=0 to XmlNodes.length-1if CountFlg <= 2 then%><td class="style3" ><span class="style4"><b><%=XmlNodes.item(i).getAttribute("Name")%></b></span>&nbsp;</td><TD><input class="FullTextArea" style="height:35px;overflow:auto;padding-left:80px;" rows="5"cols="10"> </input></TD><% CountFlg=CountFlg+1end ifnext %></tr></html></body>\[/code\]Here XmlNodes will have more than 3 xml nodes.So what i have to do is,display three in a row,and after three again next row will have three more labels+controls(TextArea) and so on.Is there a better logic to implement this.Suggest me some some answers please.
 
Back
Top