Forums
This topic is locked
Select all checkbox
Posted 11 Jun 2001 00:11:37
1
has voted
11 Jun 2001 00:11:37 gianluca jean posted:
I have a javascript that select and deselect all checkbox of recordset, itwork if the recordset doesn't include between form tag, Any ideas?
thanks to all
<% cont=0
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<input type=checkbox name=checkbox
value="<%=(Recordset1.Fields.Item("Id"
![](/images/forum/smilies/icon_smile_wink.png)
<% cont=cont+1
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</td>
</tr>
</table>
<script language=javascript>
function tagselezione() {
for (i=0; i<totalecheckbox.value; i++) {
checkbox(i).checked = selezall.checked;
}
}
</script>
</form>
<input type=hidden name="totalecheckbox" value=<%=cont%>>
Replies
Replied 11 Jun 2001 10:48:02
11 Jun 2001 10:48:02 Waldo Smeets replied:
a checkbox in a form is addressed by document.forms[0].checkbox
Waldo Smeets - www.UDzone.com Webmaster
------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
------------------------------------------
Waldo Smeets - www.UDzone.com Webmaster
------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
------------------------------------------
Replied 11 Jun 2001 11:28:56
11 Jun 2001 11:28:56 gianluca jean replied:
Thanks a lot