Note: If no option is selected, the selectedIndex property will return -1. Tip: The selected attribute can also be set after the page loads, with a JavaScript. The text property of an option is the content of the option element.. Lets say I have the following select element and I need to dynamically select the option with a value of 3, which would be the “Peach”. Property Description; length: Returns the number of