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
sowmyaa Yakkalasowmyaa Yakkala 

how to use search Icon in lightning input

i want to display a input field with search Icon but i am unable to do that.
i had written the below code.

<lightning:input type="text"   placeholder = "Search CPP ID" value="{!v.searchKeyword}" iconName="utility:search"  onchange="{!c.Search}" /> 
And the image is 
User-added image

Please try this.
<div class="slds-combobox__form-element slds-input-has-icon slds-input-has-icon_right" role="none">
	<lightning:input type="text"   placeholder = "Search CPP ID" value="{!v.searchKeyword}" iconName="utility:search"  onchange="{!c.Search}" />
	<span class="slds-icon_container slds-icon-utility-search slds-input__icon slds-input__icon_right">
		<lightning:icon iconName="utility:search" alternativeText="search" size="x-small"/>