我有自己的验证,但是对于无效的电子邮件,此弹出窗口将其覆盖。我想用我自己的。
如何禁用它?
代码:
#include "RcppArmadillo.h"
// [[Rcpp::depends(RcppArmadillo)]]
using namespace Rcpp;
检查员提供的代码:
@Html.EditorFor(model => model.mForgottenLogin.Email, new { htmlAttributes = new { id = "txtEmail" , @class = "form-control" } })
@Html.ValidationMessageFor(model => model.mForgottenLogin.Email, "", new { @class = "text-danger ErrorBackgroundHighlight" })
答案 0 :(得分:1)
将输入类型从电子邮件更改为文本。
来自:@Html.EditorFor(model => model.mForgottenLogin.Email, new { htmlAttributes = new { id = "txtEmail" , @class = "form-control" } })>
致:@Html.EditorFor(model => model.mForgottenLogin.Email, new { htmlAttributes = new { id = "txtEmail" , @class = "form-control" , @type= "text" } })