Hi,
I have some check boxes and equivalent number of text boxes. The number is dynamic (depends upon the number of records returned by recordset).
Now, on clicking a checkbox (any one among the group), I should get '1' displayed in corresponding textbox. a second click, could be anywhere in the group should give a '2' in the corresponding text box. It is some way tracking the priority. On deselecting the checkbox should clear away the corresponding number.
Here is the code
------------------
<form name="myform">
<%
i=0
do until RS.EOF
%>
<td><Input type="checkbox" name="chkbx<%=i%>" value=http://www.webdeveloper.com/forum/archive/index.php/"<%=RS("ComponentID")%>"></td>
<td><Input type=text name="txtQty<%=i%>" size=1 AutoComplete="Off"></td>
<% RS.MoveNext
i=i+1
loop
%>
</form>
Thanks,
Jay
I have some check boxes and equivalent number of text boxes. The number is dynamic (depends upon the number of records returned by recordset).
Now, on clicking a checkbox (any one among the group), I should get '1' displayed in corresponding textbox. a second click, could be anywhere in the group should give a '2' in the corresponding text box. It is some way tracking the priority. On deselecting the checkbox should clear away the corresponding number.
Here is the code
------------------
<form name="myform">
<%
i=0
do until RS.EOF
%>
<td><Input type="checkbox" name="chkbx<%=i%>" value=http://www.webdeveloper.com/forum/archive/index.php/"<%=RS("ComponentID")%>"></td>
<td><Input type=text name="txtQty<%=i%>" size=1 AutoComplete="Off"></td>
<% RS.MoveNext
i=i+1
loop
%>
</form>
Thanks,
Jay