DEV Community

Discussion on: HTML autocomplete value for "city"

Collapse
 
khorengrig profile image
khorengrig

What about this? address-level2 . I have used this on my react form and its works great.

Collapse
 
meetdave3 profile image
Meet Dave

As far as I see, using the address-level(n) may turn out to be complex as it varies from country to country. Quoting on the MDN docs here, developer.mozilla.org/en-US/docs/W.... if you see the section for United Kingdom, the town / city corresponds to address_level1 :)