<%
if rs.EOF and rs.BOF then
response.write "no message"
else
Do Until rs.EOF
if getpychar(rs("name_cc"))=wchar then
%>
<tr>
<td height="25" align="center"><%=Rs("id")%></td>
<td align="center">无图片</td>
<td align="center"><%If Not Rs("name_cc")="" then response.Write rs("name_cc") else Response.Write "无"%></td>
<td align="center"><%If Not Rs("units_cc")="" then Response.Write rs("units_cc") else Response.Write "无"%></td>
<td align="center"><%If Not Rs("model_cc")="" then Response.Write rs("model_cc") else Response.Write "无"%></td>
<td align="center"><input name="amount" type="text" disabled="disabled" id="amount" value="0" size="4" maxlength="255"></td>
<td align="center"><%If Not Rs("price_cc")="" then Response.Write rs("price_cc") else Response.Write "无"%></td>
<td align="center"><input name="checkboxid" type="checkbox" id="checkboxid" value=<%=rs("id")%> onClick=""/>
<label for="checkboxid"></label></td>
</tr>
<%
End If
rs.MoveNext
Loop
End if
rs.close
Set rs = Nothing
------解决方案--------------------
<td align="center"><input name="checkboxid" type="checkbox" id="checkboxid" value=<%=rs("id")%> onclick="SetDisabled(this)"/>
<label for="checkboxid"></label></td>
<script>
function SetDisabled(cb) {
var input = cb.parentNode.parentNode.getElementsByTagName('input')[0];
alert(input)
input.disabled =! cb.checked;
}
</script>
------解决方案--------------------
不要提示,就把alert(input)这句去掉