js判断单选按钮是否被选中
if(document.getElementsByName("product.boxtype")[0].checked){
alert("");
return false;
alert("");
return false;
}
<input type="text" name="product.boxtype"/>
}
<input type="text" name="product.boxtype"/>