I want to select an option from an HTML <select>
object using JavaScript. The select has 6 options and I know I can get the select object using:
document.getElementByID('id');
I don't know if that's common, but the options have a property named value, so how can I select an option by value or text?