[].forEach.call(document.querySelectorAll('a'), function (el){ el.addEventListener('click', function(){ document.querySelector('input[type="checkbox"]').checked = false; }); });