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
Monalisa Das 39Monalisa Das 39 

HTML5 datalist tag not working with lightning component

input list="browsers" name="myBrowser" />
<datalist id="browsers">
    <option value="Chrome" />
    <option value="Firefox"></option>
    <option value="Internet Explorer"></option>
</datalist>
But it dint worked worked out as stated here
https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_datalist
Am I missing something
 
Raj VakatiRaj Vakati
Try this this
 
<aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" >
	<select>
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="mercedes">Mercedes</option>
  <option value="audi">Audi</option>
</select>
</aura:component>

 
Monalisa Das 39Monalisa Das 39
@Raj - I think you din't went through the w3schools link - https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_datalist. My requirement is not just to use plane select tag. but html datalist along with a input. Basically a dropdown that gives you functionality to type in as well