How to get ValidationMessage in MVC View without HTML helper adding its own span?
<p>First off , I am new to MVC. I have a view which has the following line of code:</p>

<pre><code>&lt;span id="loginerror" style="border-color:red;"&gt; @Html.ValidationMessage("UserName") &lt;/span&gt;
</code></pre>

<p>This works fine except that it adds a span within my <code>loginerror</code> instead of just displaying the error within <code>loginerror</code> . I am aware that I can also add css through html helper but I would like to do it in this way if possible. I just want to get the value of ValidationMessage without having to change a lot of code.</p>