110,536
社区成员
发帖
与我相关
我的任务
分享
var radioList = $(input[type=radio]);
var current = null;
radioList.each(function(){
current=$(this);
radioList.each(function(){
if($(this).attr("name")== current.attr("name"))
{
if(!$(this).attr("checked")&&!current.attr("checked")//两个都没选中
{
$(this).css("ForeColor","red");
current.css("ForeColor","red");
}
else
{
//设置回原来的颜色
}
return false;
}
});
})