i have following code
<div class="divnewproductsmain" style="margin: 0 34px 0 0"> <div class="newprodtextdiv2"> <input type="text" id="txtnewcompcode_1" runat="server" class="newprodtext2" /> </div> <div class="divprodcuttotal"> <label id="lblnewtotalrow_1" runat="server"> 0</label> ₪ </div> <div class="newprodtextdiv2"> <input type="text" id="txtnewprice_1" runat="server" onkeyup="setamountnewprod(this.id)" class="newprodtext2" /> </div> <div class="newprodtextdiv2"> <input type="text" id="txtnewamount_1" runat="server" onkeyup="setamountnewprod(this.id)" class="newprodtext2" maxlength="3" /> </div> <div class="newprodtextdiv"> <input type="text" id="txtnewprodname_1" runat="server" class="newprodtext" /> </div> </div>
the controls id's run 1 10, example have txtnewcompcode_1, txtnewcompcode_2, txtnewcompcode_3 , , on until txtnewcompcode_10.
my question is, how can if possible run loop in code behined on controls , add number of row on, txtnewcompcode_ + rownumber. not make each control line of code take value. have multiple controls , write line of code take each value lot of code.
look at:
this give granular control on html passing it. once it's passed can access these objects programatically , extract whatever info want.
Comments
Post a Comment