Here’s the source code:
And here’s all the key codes:
A web developer often needs to add an event to multiple elements, but you don’t want to repeat your code all over the place, so the best way to do it is to make a loop.
The excellent news is, since this loop just goes from i=0, i=1, i=2, etc, we can use one loop and add events to all 3 li’s & inputs with it.
Also watch: “Responsive Design Tutorial – Tips for making web sites look fantastic on any device”