How to change semicolon behavior in jQuery IO plugin?
I am using the jQuery-Tags-Input plugin: Github / Demo page .
You can notice that when clicked enter
as well,
, the current tag is sent. I would like to click too ;
. By default, when you click ;
it is considered part of the tag.
I couldn't find this in the settings. Is there any other way than to customize the code directly? Has someone done this already?
+3
source to share
1 answer
It's a delimiter parameter, but it looks like you can only pass one character and not an array.
You can always just copy the code to line 294. Change this:
if (event.which==event.data.delimiter.charCodeAt(0) || event.which==13 )
For this:
if (event.which==event.data.delimiter.charCodeAt(0) || event.which==59 || event.which==13 )
Working demo: http://jsfiddle.net/kbwqr/
+4
source to share