Apply class to @Html.ValidationMessageFor
<p>Model:</p>

<pre><code>[Required(AllowEmptyStrings = false, ErrorMessage="Please enter student name.")]
[StringLength(20,ErrorMessage="Student name cannot be over 20 characters long")]
    public string StudentName { get; set; }
</code></pre>

<p>View:</p>

<pre><code>@Html.ValidationMessageFor(m=&gt;m.StudentName,new {@class = "validation"})
</code></pre>

<p>Seems like there is no such overload for <code>ValidationMessageFor</code>. How do I apply class to it?</p>