The autocomplete function is actually an xhr request and should probably be renamed to something that suggests this.
I would also add it might be nice to make the xhr function a generic and reusable function. This could then be reused to send an xhr request to somewhere else and actually render some search results on the page.
The autocomplete function is actually an xhr request and should probably be renamed to something that suggests this.
I would also add it might be nice to make the xhr function a generic and reusable function. This could then be reused to send an xhr request to somewhere else and actually render some search results on the page.