1: I have such a requirement: I need to enter N addresses in the email input box. The N emails must be separated by semicolons.
2: Can it be verified through angularJS or other methods? The N email addresses entered are separated. Can the emails be sent correctly?
3: Or can you determine whether these mailboxes are not separated, and then allow me to provide prompt box information accordingly?
4: Or automatically judge after entering the address, and then automatically add a semicolon.
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)