javascript - How to email blocks input field like the one in gmail? -
in gmail when input email , press pace bar, email form light blue box, , can type in email separated. (similar tags in stackoverflow?) how can 1 achieve it? have looked tagit, it's no longer under active development. suggested select2 alternative, don't see how can achieve desired effect no predetermined list of accepted values (all emails should accepted!).
any idea how make it? best not use jquery ui :).
check out auto tokenization select2. allows users insert non predefined tags (or email adresses in case). make sure define tokenseparators
, example:
$("#input").select2({ tokenseparators: [",", " "]} );
Comments
Post a Comment