Last time, I tried to get each input value using the id, name, and class.
This time we will use the id to get name/class, name to get id/class, and class to get id and name.
(I do not remember exactly, sometimes you need them.)
Declare the div first.
(getElementById element is singular, class and name are plural)
* If you use duplicate class or name, you should pay attention to set index value.