If we want to trigger an event when an input field changes its value, we can use the onchange property.

This property only triggers after the change is done.

Make sure to pick onchange.