I need to know when a checkbox has been changed by Javascript using pure javascript.
I have setup an 'onchange' event that successfully executes when the user changes the checkbox but this doesn't work when another JS function changes it using code like the following:
document.getElementById('mycheckbox').checked = true;
Is it possible to fire an event using pure JavaScript when JS either checks or unchecks a checkbox?
Aucun commentaire:
Enregistrer un commentaire