标签:输入 checked == var get next java 复选框 for
$("#" + inputId).on("input", function () {
var checkboxId = $("#" + inputId).attr("target");
if ($("#" + inputId).val().length == 0) {
//关闭复选框
if ($("#" + checkboxId).next().hasClass("layui-form-checked"))
{
$("#" + checkboxId).next().click();
}
} else {
//开启复选框
if (!$("#" + checkboxId).next().hasClass("layui-form-checked")) {
$("#" + checkboxId).next().click();
}
}
})
标签:输入 checked == var get next java 复选框 for
原文地址:https://www.cnblogs.com/liuqiyun/p/9436624.html