Mr. Devin has added an input field in his website. He wants the user to enter the company name in the input field and include autocomplete functionality for this input field.
Can you let me know which of the following code snippet is correct to achieve this functionality?
a. <input list= “companys” name= “company”>
<datalist id= “companys”>
<option value= “c1”>
<option value= “c2”>
<option value= “c3”>
<option value= “c4”>
<option value= “c5”>
</datalist>
</ input >
b. <input type= “text” name=“company” autocomplete />
only a
only b
a and b
Neither a nor b
To get all Infosys Certified Front End Web Developer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee