How do I enable exact match from start of string using jquery autocomplete with input from simple array?

If i have the following in an array:

  • smart
  • oversmart
  • smartland
  • undersmart
  • verysmart

And if I am typing "sma..." in the text input, i must be shown only smart and smartland, not the others.

Edit
Report