function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mrityunjay Patel 18Mrityunjay 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 !
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Mrityunjay,

In the java script file you can use the below line of code to get it.
 
component.find("picklist").get("v.value");

Reference Document (https://developer.salesforce.com/docs/component-library/bundle/lightning:select/documentation)

If this solution helps, Please mark it as best solution.

Thanks