I want to uncheck a checkbox using javascript. I have one button which just unchecks the box and works fine:
function clear() { document.getElementById(\"check\"
You need a boolean to do that.
Take a look at this pen:
https://codepen.io/anon/pen/jJyXgO
let checkbox = document.querySelectorAll('#check')[0] setInterval(function() { checkbox.checked = !checkbox.checked }, 1000)