您的位置:首页 > Web前端 > JQuery

JQuery判断checkbox选中,jquery获取选中的checkbox

2014-06-23 23:03 316 查看
选中的radio

$('input[name="radInvoiceType"]:checked').val(); 这样能获得

$('input[name="radInvoiceType"][checked="checked"]').val(); 这样不能获得

$(this).attr("checked") == true || $(this).attr("checked") == "checked"也不能获取

$('#chkAgree:checked').length>0 被选中

$(this).attr("checked") == true || $(this).attr("checked") == "checked"不能判断被选中
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: