Javascript to check whether a checkbox is being checked or unchecked

前端 未结 7 1193
轮回少年
轮回少年 2020-11-29 06:37

I have a javascript routine that is performing actions on a group of checkboxes, but the final action I want to set the clicked checkbox to checked or unchecked based on if

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 06:56

    function CHeck(){
        var ChkBox = document.getElementById("CheckBox1");
        alert(ChkBox.Checked);
    }
    
    
    

提交回复
热议问题