Coding Help With Multiple Similar Items

Greetings,

I have 3 text boxes that underline when “mouseIn” and remove the underline when “mouseOut”. I am planning on creating many more text boxes with the exact same properties. Instead of having to change the code for each of these text boxes to identify with their individual “ID’s”, is there a way to save time?

You can use a single event handler for onMouseIn and onMouseOut and use event.target.id to figure out the box that fired the event.