0

MVC 5フォームの検証を使用してフォームの電子メールアドレスフィールドを検証していますが、ポップアップするメッセージウィンドウが正しいフィールドを超えていません。mvc 5フォームの検証電子メールアドレスのメッセージウィンドウ間違ったフィールド

Message Over Wrong Field

これは、3つのフィールドのコードです:

<input class="underlineBox text-box single-line filledIn" data-val="true" data-val-required="The Name field is required." id="Name" name="Name" placeholder="ex. Jon Doe" type="text" value="" data-com.agilebits.onepassword.user-edited="yes"> 

<input class="underlineBox text-box single-line filledIn" data-val="true" data-val-email="The Email field is not a valid e-mail address." data-val-required="The Email field is required." id="Email" name="Email" placeholder="ex. [email protected]" type="email" value="" data-com.agilebits.onepassword.user-edited="yes"> 

<textarea class="underlineBox text-box multi-line filledIn" data-val="true" data-val-required="The Message field is required." id="Message" name="Message" placeholder="ex. Hi Syd, I would like to start a project together." rows="5"></textarea> 

任意のアイデア?

答えて

1

私は、フォーム上の電子メールアドレスフィールドを検証するためにMVC 5フォーム検証を使用していますが、ポップアップするメッセージウィンドウには、jQueryの検証の絵ではありません正しいフィールド

上ではありません。デフォルトでは、jQuery Validateはフィールドの横にテキストを挿入するだけです。

表示されているポップアップは、ブラウザごとのHTML5検証です。これは、単にJavaScript/jQueryの検証が何らかの理由で機能していないことを意味します。

関連する問題