In JavaScript, is there an event triggered when a radio button is checked?
<input type="radio" name="radio" id="radio1">
<input type="radio" name="radio" id="radio2" checked>
<input type="radio" name="radio" id="radio3">
Is something like the following possible?
document.getElementById("radio1").addEventListener('checked', () => {
// Do something when the first radio button is checked
})