jquery - Tags data-value with separator ' ' (one whitespace) was interpreted as one -


i trying use select2 x-editable edit tags, override defaults: set separator ' ' (default comma).

i set data-value="what,no,alright,sha e b r" should 4 tags: what,no,alright,sha e b r. turned out 1 tag what,no,alright,sha,e,b,r shown.

here js code: http://jsfiddle.net/mydj9/5/

just let me know if need clarified. thanks.

got same problem, solved in way

issue report @ x editable
same subject x-editable support answer

, more info had found @ select2 primary developing site

github.com/ivaynberg/select2/issues

oryginally:

separator: ",", tokenseparators: [], // array default empty, separator default ",", 

so if find problem in app [php or other programmers]

change delimeter need to:

separator: "|", need give tokenseparators:["|", " "], 

or other need.cheers


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -