Display the Options

Each autocomplete call will return an array options and each would contain a link object. The link object contains two important attributes:

  1. title - The address text to be displayed to the end user
  2. href - The hyperlink to follow if this option is chosen

You will need to show the link.title attribute for each element of the options array to the end-user. Once you have displayed the available options, the end-user will need to select one.