There might be requirement at times to force the users to select from the items displayed in suggest box list and not allow them to enter anything other than the list displayed.
This can be done easily using JQuery. JQuery has a parameter named mustMatch which should be set to true. By default mustMatch is set to false. Here is an example.
$("#sampleSuggest").
{
minChars: 3,
max: 10,
multiple: true,
multipleSeparator: "\n",
mustMatch: true,
matchContains: true,
scrollHeight: 220,
}
mustMatch saved my day. I hope it saves someone else's day.