I have an array that looks like this:
["Item1", "Item2", "Item3"]
I want to utilize this array to iterate through the items and populate the following HTML format:
<option data-img-src=ITEM 1 value="1"></option>
<option data-img-src=ITEM 2 value="2"></option>
<option data-img-src=ITEM 3 value="3"></option>
In addition, I also need to extract the value
for each item.
For example, the first one would be value="1"
and so on incrementing by one.