如何判断input radio是否选中

2025-04-29 04:01:27
推荐回答(1个)
回答1:

$(":radio").each(function(){
if($(this).attr("checked")){
alert("选中");
}else{
alert("未选中");
}
})