我正试图在收音机的同时清除所有复选框列表(选项 - '是')当选项'否'被选中:
if (checkbox unchecked) {
//adding checkbox to list of checkboxes selected
}
else {
//taking off only the checkbox which is unchecked
//If No trying to clear off the whole list of checkboxes under Yes to " "
if (radioVal == 'No')
{
list = [];
}
}

使用Chrome时,radioVal正在填充为“No'”。但是当使用IE11时,radioVal仍然填充为“是”'并且此代码一次仅清除一个复选框。
任何帮助?