I am receiving an error on IE 8-7 saying that Object doesn't support property or method 'addEventListener' when I used the code below. Does anyone know how I can make the code below compatible with IE8-7? thanks
document.getElementById('clear').addEventListener('click', function () {
[A1,A2,A3,A4,A5,A6, A1_flip,
].forEach(function(id) {
document.getElementById(id).checked = false;
});
return false;
})