0

我注意到这个非常好的带有 js 验证的输入框(在 azure.com 门户上),并且想知道如何为我的 Web 项目获得类似的输入框。

我注意到一些 fx-..... css 正在被应用,所以也许它是一些标准的 Lib 或框架?

<input id="manage-coadmin-email" class="fx-textbox fx-validation fx-editablecontrol fx-editablecontrol-edited fx-validation-required-valid fx-validation-length-valid fx-validation-regex-valid fx-validation-isValidCoAdminEmailAddress-valid fx-validation-valid fx-validation-deferred-valid" type="text" data-link="emailAddress" name="emailAddress" data-val="true" data-val-required="You must enter a value in the field." data-val-regex="The email address can contain only letters, numbers, periods, hyphens, and underscores. The address can contain only one at sign (@)." data-val-regex-pattern="^[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)*@([a-zA-Z0-9_]+[a-zA-Z0-9_-]*\.)+[a-zA-Z]{2,63}$" data-val-length="Specify a value that is not longer than {0} characters." data-val-length-max="254" data-val-isvalidcoadminemailaddress="The co-administrator must sign in with a user account from an associated directory."></input>

在此处输入图像描述

4

1 回答 1

0

我做了一些非常相似的事情,使用MVC 远程验证来处理 AJAX 验证,并使用Twitter Bootstrap中的输入组来处理复合输入/图标。

于 2013-08-29T09:10:23.667 回答