Autocomplete Address Validation

Hi Bruno,

So the short version is

I have a form, and on that form I have the Autocomplete Address field.

One of the main issues I was facing, was that people were typing an address into that field, but not actually selecting one of the autocomplete suggestions.

So for eg. an address like

12 Wix Avenue, Los Angeles, CA 90039, USA

They would type something like

12 Wix

into the input field, and think oh the first suggestion looks right, and just hit the TAB key and move on to the next field and submit the form.

Unfortunately because they hadn’t actually clicked on the option, all I was receiving was 12 Wix and hence not a proper address.

The code I have suggested last seems to be working so far, but curious to hear how you envisioned the onBlur() function working.