JSFiddle - React, Tailwind, and code Playground
HTML
<select id="afewitems" onchange="changeInfo(this)">
<option value="0">Select</option>
<option value="1">item1</option>
<option value="2">item2</option>
</select>
<div id="info"></div>
JavaScript
function changeInfo(el) {
var info = [
"some text", // option 0
"something else", // option 1
"..." // option 2
];
var val = el.options[el.selectedIndex].value;
document.getElementById('info').innerHTML = info[val];
}
changeInfo(document.getElementById('afewitems'));