JSFiddle - React, Tailwind, and code Playground

by Shaunak Deshpande

HTML

<select id="trollSelect">
    <option value="PL">Troll</option>
    <option value="EN">Troll</option>
    <option value="JP">Troll</option>
</select>

JavaScript

var arr = ['Pan Troll','Mr Troll','Troll Sama'];
$('#trollSelect option').each(function(i){
    console.log($(this).html(arr[i]));
});