一个radio按钮 点击选中取消效果
<input type="radio" value="1" checked name="open_bwechat_shop" id="open_bwechat_shop" class="form-control" onclick="chkRadio(this)"/>是
var flag = true;
function chkRadio(chk)
{
chk.checked = flag;
flag = !flag;
}
//按钮切换显示或隐藏对应的内容
var open_store = $("input:radio[name='open_store']");
checkShow();
open_store.change(function () {
checkShow();
});
function checkShow() {
if ($("input:radio[name='open_store']:checked").val() == 1) {
$("#weixi_role").show();
} else {
$("#weixi_role").hide();
}
}