If you look for jQuery tag type scripts they will do exactly what you're after. Just like this one:
Email separator similar to gmail
Domanda
How can i achieve an email separator similar to gmail using jquery, the script will separate the email when it detects the " , " or " " then gives the email individual frames, also allows deletion when clicking the " x ", and edit the email by double clicking
Soluzione
Altri suggerimenti
You can also check out Chosen:
http://harvesthq.github.io/chosen/#multiple-select
Multiple select is what you want in particular, it can turn <select>
elements into what you want or fetch options via AJAX.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow