Search code examples
cssbackground-colorinput-field

CSS property to distinguish if a person has entered an input-value manually or have selected it from the auto-complete suggestions?


is there a CSS property to distinguish if a person has entered an input-value manually or have selected it from the dropdown autocomplete suggestions?


Solution

  • Try adding :-webkit-autofill in the css to your element. Then whatever is inside will be activated when the element is autofilled. If you want more info go to this website https://css-tricks.com/snippets/css/change-autocomplete-styles-webkit-browsers/

    -Hope this helps