You can make something similar to tag-input. When entering, verify whether the input content meets the email format standard. If the verification is successful, it will be added. If the verification fails, a detailed message will be prompted. This can avoid the user having to input all the input content. Verify again to ensure that the entered content is the correct one after verification
You can make something similar to tag-input. When entering, verify whether the input content meets the email format standard. If the verification is successful, it will be added. If the verification fails, a detailed message will be prompted. This can avoid the user having to input all the input content. Verify again to ensure that the entered content is the correct one after verification
Press Enter to enter
HTML
Directive
Thank you very much @crazy4x for the answer:
Later I found a new method myself:
Goal: When entering multiple email addresses into the input box, check whether the N email addresses are correct and give a prompt
Method:
HTML:
<form class="form-horizontal" role="form" id="custom_form" name="custom_form" novalidate>
Js:(Angular)