The three event listeners that are registered on the text fields are very similar.
I will explain only one of them.
You can view the code for the other two in Listing 10.