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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -