验证弹出窗口从哪里来?

时间:2018-11-14 04:24:46

标签: validation internet-explorer firefox model-view-controller

我有自己的验证,但是对于无效的电子邮件,此弹出窗口将其覆盖。我想用我自己的。

如何禁用它?

Firefox: enter image description here

IE: enter image description here

代码:

#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" })

1 个答案:

答案 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" } })