When working on a project today, I encountered a problem. After checkbox is selected, the selected value will be assigned to a variable, and the value of this variable will be used to control whether the button on the page is displayed.
var temp = ""; for(){ var bool = ""; //Assign temp if(temp == '31'){ bool += "false"; } } if(bool.indexOf("false") >= 0){ document.getElementById("myid").style.display="none"; }else{ document.getElementById("myid").style.display="inline"; }