如何在kendo ui中验证多个电子邮件

时间:2012-10-04 06:52:45

标签: html5 kendo-ui

我喜欢

<td> <label for="email" class="required">To:</label></td>
       <td><input type="email" id="email" name="Email" class="k-textbox" placeholder="e.g. myname@example.net"  required data-email-msg="Email format is not valid"  "/></td>

并在

document.ready(function(){} I have defined like 
    var validator = $("#email").kendoValidator().data("kendoValidator");

验证单个电子邮件,我想一次验证多封电子邮件,您可以告诉我如何验证多封电子邮件

1 个答案:

答案 0 :(得分:0)

然后,您应该将属性multiple添加到输入标记:

<input type="email" 
       id="email" 
       name="Email" 
       class="k-textbox" 
       placeholder="e.g. myname@example.net" 
       required 
       data-email-msg="Email format is not valid" 
       multiple="multiple"/>

您现在可以添加以逗号分隔的多个电子邮件地址。