如何判断input radio是否选中

如题所述

$(":radio").each(function(){
if($(this).attr("checked")){
alert("选中");
}else{
alert("未选中");
}
})
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答