Hi folks
I've written this little snippet to help simplify my question. Basically, on the combobox change I'm displaying the value of the selection - so 21 if I select BMW. How could I display BMW instead?
function myFunction()
{
var x = document.getElementById("myWeeCombo").value;
document.getElementById("demo").innerHTML = "You selected: " + x;
}

Sreekanth ReddyRank #726 · 3.2K reputationPosted Jan 20, 2019, 9:44 PM EST
Sanwar RanwaRank #23 · 44.7K reputationPosted Jan 20, 2019, 10:38 PM EST
Robbie Hegarty38 reputationPosted Jan 20, 2019, 10:51 PM EST
Sreekanth ReddyRank #726 · 3.2K reputationPosted Jan 20, 2019, 10:56 PM EST
Robbie Hegarty38 reputationPosted Jan 21, 2019, 1:26 AM EST