How do I read in my Javascript function the field (TabValues), loop through the values and check off the checkboxes in my form?
Here is what I have so far, but I am reading incorrectly in the Javascript function.
Javascript function
ASP Code
Here is what I have so far, but I am reading incorrectly in the Javascript function.
Javascript function
Code:
function CheckTabsAssigned()
{
var strFieldString;
strFieldString = document.frmTabAssignDoc.TabValues;
alert(strFieldString);
ASP Code
Code:
<input type="checkbox" name="CheckAll" value="CheckAllTabs" onClick="CheckTabsAssigned()"><b>ALL</b><br>
Do While Not rs.EOF%>
<input type="hidden" name="TabValues" value="<%=rs.Fields("ID").value%>">
rs.MoveNext
Loop