开发者

jquery autocomplete multipleSeparator case sensitive

开发者 https://www.devze.com 2023-04-11 00:43 出处:网络
I would like to use the case-sensitive word as multiple separator for autocomplete. right now, I am using separator as \"AND\".

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

精彩评论

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