<head>
<script language=javascript>
function docheckall()
{
......
}
</script>
</head>
How can do by click button in
js,
select all checkbox checked ?
do while rs.eof=false
Response.Write("<td><input type=checkbox name=dept value='" & rs("dept") & "' ></td>")
Response.Write("<td align=left>")
Response.Write("<a target=_self title='Select Emp No' href='showrep.asp?dept=" & (rs("dept")) & "'>" & rs("dept") & "</a>")
Response.Write("</td>")
'Response.Write("<td>" & rs("dept") & "</td>")
rs.movenext
loop
<INPUT id=submit2 name=submit2 type=submit value="Select All" title="Select All" onClick="docheckall()">
when user click Select All button, all check box do checked
how ?
regards.
Mateen