我有一个数组说
{'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>
我只想找出星期天、星期三和星期四,然后检查这三个。怎么做?有人可以帮我根据数组值的变化检查多个框吗?谢谢