js 对html 选择框等一些纪要
作者:互联网
$("#xxx").click(function(){ if($("input[type='checkbox']").is(':checked')){ $(".isshow").removeClass("hid") }else{ $(".isshow").addClass("hid") } }), $("#xx").change(function(){ var opt=$("#ExecStaus").val(); if(opt==="Y") { $("#xxxdiv").addClass("hid") //div id }else { $("#xxxxxxcdiv").removeClass("hid") } });
显示, 和不显示
js模版文件 循环写法
{{if list.length>0 }} {{each list as TaskViolationLogInfo i}}
标签:opt,function,removeClass,isshow,js,html,hid,框等,addClass 来源: https://www.cnblogs.com/zuochanzi/p/14444957.html