$(document).on("click",".Js-hhj-account-enable",function(){
var $thiz = $(this),
$trParent = $thiz.parents("tr");
if($thiz.text() == '启用') {
$thiz.text('禁用');
$trParent.find("input[type='checkbox']").removeAttr("disabled");
$trParent.find("td:eq(5)").text("正常");
$trParent.removeClass("active").removeAttr("style");
} else {
$thiz.text('启用');
$trParent.find("input[type='checkbox']").prop("checked",false).attr("disabled","disabled");
$trParent.find("td:eq(5)").text("禁用");
$trParent.addClass("active").css("cursor","not-allowed");
}
});
切换1
最新推荐文章于 2022-11-06 06:39:08 发布