Drop[ down and Javascript

I seem to be having a brain fartI can not remember how to select a value in a drop down via code in Javascript

Meaning: if I have a drop down and it’s values are apple; oranges, bannanas

from Javascript I want to set the selected value to oranges

and not by the index number, but by the actual value of oranges

can someone please help my brain fart???

Subject: Script it

You mean something like this?