Lucie kulza
Lucie kulza

Reputation: 1377

Autocomplete design

I'm trying to autocomplete an input[type='search'], so the idea is when the user change the value of this input, he'll get a list of the strings which are contains the written string.

Dealing that, when I try to write a string, I get it but its design format is very weird.

enter image description here

Its such a <li>Nectarys</li> which is added by default. How can I fix this, by just displaying a simple list which extends the input[type='search']?

Here is the code that I'm using in HTML :

<input type="search" name="nomPoste" id="nomPoste" class="form-control" />

Any brilliant idea, please ?

Upvotes: 2

Views: 121

Answers (2)

sscirrus
sscirrus

Reputation: 56799

Use CSS to format the list however you ilke.

Note that the different browsers are likely to handle something like this very differently, so I would recommend combining your custom CSS with a CSS reset.

Upvotes: 0

LiverpoolsNumber9
LiverpoolsNumber9

Reputation: 2394

Include the jqueru ui css file on your page.

Upvotes: 1

Related Questions