Algolia autocomplete: How to use it within an existing HTML form

I have a standard HTML form for address submission.

In the form field city_name , I want to use Algolia autocomplete to look up and suggest city names (pulled from a database).

But Algolia autocomplete creates a form for the search box itself, which means that I’d end up with a form within a form , which is of course invalid HTML.

How do I use Algolia autocomplete in such a case?