我有一个数组说
{'Sunday','Wednesday', 'Thursday'}
我有一个包含所有工作日的复选框。
HTML code
<tr>
<td width="3%"></td>
<td><input type="checkbox" name="weeklyDay"
id="sunday" value="sunday"> Sunday
</td>
<td><input type="checkbox" name="weeklyDay"
checked id="monday" value="monday"> Monday
</td>
<td><input type="checkbox" name="weeklyDay"
id="tuesday" value="tuesday"> Tuesday
</td>
<td><input type="checkbox" name="weeklyDay"
id="wednesday" value="wednesday"> Wednesday
</td>
</tr>
<tr>
<td width="3%"></td>
<td><input type="checkbox" checked
name="thursday" id="thursday" value="thursday"> Thursday
</td>
<td><input type="checkbox" name="weeklyDay"
id="friday" value="friday"> Friday
</td>
<td><input type="checkbox" name="weeklyDay"
id="saturday" value="saturday"> Saturday
</td>
</tr>
我只想在周日,周三和周四找到这三个。怎么做? 有人可以帮我根据数组值更改检查多个框吗? 谢谢