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

Verified Answer
Correct Option - a

To get all Infosys Certified Front End Web Developer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in