jq 判断单选是否选中

if(!$("input[name=agree]").attr('checked'))
    {
        alert("请勾选同意用户服务条款!");
        return false;
    }

原文地址:https://www.cnblogs.com/hateyoucode/p/2993111.html