jquery

if($("input[name='radioName'][type='radio']:checked").length==0)
{
alert("请选择类型");
return ;
}

原文地址:https://www.cnblogs.com/qwj888/p/1907640.html