Hi i am unable to get ui:inputSelectOption
value in js. I have values in v.accList
which is of type Account[]
. In alert its getting as undefined.
CMP
<ui:inputSelect aura:id="acc" required="true">
<aura:iteration items="{!v.accList}" var="ac">
<ui:inputSelectOption text="{!ac.Id}" label="{!ac.Name}"/>
</aura:iteration>
</ui:inputSelect>
JS
alert('getaccValue'+(component.find("acc").get("v.text")));