我該如何去檢查checkBox是否已經在javascript中檢查過? I C#這是再簡單不過的
int selected = 0;
for (int loop = 0; loop < chkMeal.CheckedItems.Count; loop++)
{
selected++;
}
if (selected > 1)
{
MessageBox.Show("only one meal allowed", "Halt", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
我怎麼會做一個simlar東西用JavaScript?
親切的問候 阿里安
已經在這裏解答:http://stackoverflow.com/questions/901712/check-checkbox-checked-property-using-jquery – MoarCodePlz