I'm trying to test if a checkbox is checked or no I found this solution but I'm getting nothing
if(document.getElementById('checkbox-1').checked) {
  alert("checked");
}<input id="checkbox-1" class="checkbox-custom" name="checkbox-1" type="checkbox"> 
     
    