In my studies in JS I have the following code:
<select name='options'>
<option value="a">A</option>
<option value="b">B</option>
<option value="c">C</option>
</select>
<input class="input" type="text" />
<input class="input" type="text" />
<input class="input" type="date" />
I need that based on the select it shows the input referring to his index.
Example: If I selected A, it shows input 1, if I selected B it hides 1 and shows 2, and so on. The idea is that only one element of the type input appears on the screen, and all others are with display: none;
But I can not use an extra class to differentiate. What I had as idea was to use an array, and make a For, but I did not evolve with that.