When the JSon return data is including some Symbol, the AutoSuggest list can not display it.

Lu Ming's Avatar

Lu Ming

25 Mar, 2011 04:04 AM

I use AutoSuggest jQuery Plugin to integrate with ASP.NET website. Most JSON return data is okay. But if the value include some Symbol, such as plus (+), the program will raise an exception.

The error is located at Line 275, jquery.autoSuggest.js.

if (str.search(query) != -1 && values_input.val().search("," + data[num][opts.selectedValuesProp] + ",") == -1) {
    forward = true;

And because of


AutoSuggest is a greate Plugin. Thank you working on it.



Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac