You need to sign in to do that
Don't have an account?
Mrityunjay Patel 18
how to get the selected value after find in search bar in aura component
My cmp file
<lightning:input type="text" name="searchKey" label="Enter" class="config_field" aura:id="searchKey" onchange="{!c.searchKeyChange}" placeholder="Search"/>
<lightning:select aura:id="picklist" name="selectAccount" class="selectList config_field" onchange="{!c.onHeaderChange}">
<aura:iteration items="{!v.accounts}" var="item" >
<option value="{!item.Id}" label="{!item.Name}" >
{!item.name}
</option>
</aura:iteration></lightning:select>
Thanks in advance !
<lightning:input type="text" name="searchKey" label="Enter" class="config_field" aura:id="searchKey" onchange="{!c.searchKeyChange}" placeholder="Search"/>
<lightning:select aura:id="picklist" name="selectAccount" class="selectList config_field" onchange="{!c.onHeaderChange}">
<aura:iteration items="{!v.accounts}" var="item" >
<option value="{!item.Id}" label="{!item.Name}" >
{!item.name}
</option>
</aura:iteration></lightning:select>
Thanks in advance !
In the java script file you can use the below line of code to get it.
Reference Document (https://developer.salesforce.com/docs/component-library/bundle/lightning:select/documentation)
If this solution helps, Please mark it as best solution.
Thanks