I have a set of checkboxes in an HTML file.
Then I have onClick()
event handlers in two separate JavaScript files.
I just noticed that only one of of my onClick
methods is being called when I click on the checkboxes. If I remove one of the event handlers then then other one will work. There must be some way to get a click event and not swallow the event for other listeners.
How do I allow both of the event handlers to be called?
var at = document.getElementById("at");
at.onclick = function() {