📌  相关文章
📜  检查是否选中了一个单选按钮 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:50.037000             🧑  作者: Mango

代码示例3
if ($('input[name='+ radioName +']:checked').length) {
           // at least one of the radio buttons was checked
           return true; // allow whatever action would normally happen to continue
      }
      else {
           // no radio button was checked
           return false; // stop whatever action would normally happen
      }