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
题
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
解决方案
其他提示
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.
不隶属于 StackOverflow