Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
フォームでxValクライアント検証を使用してMVCデータ注釈を使用しています。赤いエラーメッセージを表示する代わりに、asp.net検証コールアウトエクステンダーのようなものを実装するにはどうすればよいですか。
このための組み込み機能はありません。xVal JavaScript ファイルを変更するには、通常の"<span class='field-validation-error'>..."JavaScript によって生成されたマークアップ エラー メッセージをカスタム マークアップとコールアウト エクステンダーのようなスタイルに置き換えます。
"<span class='field-validation-error'>..."