I'm trying to extract the innertext of a selected dropdown item. The one I'm looking to return is "Institution 2"
<select name="ctl00$ContentPlaceHolder1$ddlInstName" id="ctl00_ContentPlaceHolder1_ddlInstName" style="background-color: rgb(255, 255, 128);">
<option value="Select…">Select…</option>
<option value="1867">Institution 1</option>
<option selected="selected" value="719">Institution 2</option>
<option value="1971">Institution 3</option>
This is what I have but it only returns a 0 value
account = IE.document.getElementById("ctl00_ContentPlaceHolder1_ddlInstName").getElementsByTagName("selected")(0).innerText
Any help would be greatly appreciated