0

enter image description here

I am building my own custom search with google search api.
How can I style the popup which shows when selecting an input box ?
Its some sort of search-input history popup.
I guess this may be only possible via jquery. But I dunno how this element is called.

andibra
  • 153
  • 4
  • 15

2 Answers2

0

You can't style a history-complete dropdown. It's implemented differently on different browsers.

You can hide it if it doesn't match your site's design, by using autocomplete="off"

See duplicate question.

Samuel Liew
  • 76,741
  • 107
  • 159
  • 260
0

As Samuel Liew's answer indicates, this is browser functionality that you can't style. If you just don't want to show it, use autocomplete="off". If you really want the functionality and you really need it to be styled, you'll have to roll your own, for example by storing a list of the user's previous inputs in a session or cookie value and using it to populate a list that you generate manually when the user enters text.

AmericanUmlaut
  • 2,817
  • 2
  • 17
  • 27