开发者

jquery autocomplete multipleSeparator case sensitive

I would like to use the case-sensitive word as multiple separator for autocomplete.

right now, I am using separator as "AND".

multipleSeparator : " AND ",

Can I make it case开发者_StackOverflow社区-sensitive.

Please help, Thanks in advance.


Finally I got the answer in easy way,

Before splitting the words with multiple seperator, I replaced all the areas of multipleTerm value to Upper Case.

value = value.replace(/ and /ig, " AND ");

Thanks guys for your effort.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜