The onchange event occurs when the value of an element has been changed. For radiobuttons and checkboxes, the onchange event occurs when the checked state has been changed. Execute a JavaScript when a ...
The input control has an onchange attribute that when the event is triggered, the value of the input is written to the console. How to reproduce Open developer tool so you can see the output, if any.