raido 选中后点击再取消
<input type='radio' name='onlyConnectRadio' onmouseover='mo(this)' onclick='ck(this)'/>
<input type='radio' name='onlyConnectRadio' onmouseover='mo(this)' onclick='ck(this)'/>
function mo(thisObj) {
if ($(thisObj).is(':checked')) {
$(thisObj).attr("select","true");
console.log("select")
}else {
$(thisObj).removeAttr("select");
console.log("not")
}
}
function ck(thisObj) {
if ($(thisObj).is(':checked') && $(thisObj).attr("select") == "true") {
$(thisObj).removeAttr("checked");
}
mo(thisObj);
}
浙公网安备 33010602011771号