I am using the following JS.fiddle of client-side validation within my project. I have implemented this example as my javascript. http://jsfiddle.net/rtglenn/VwPaR/
Currently, the fields are highlighting green when active and staying green. However, they are not displaying red if one of the rules is broken.
Here is my View:
@using (Html.BeginForm()
{
<div class="form-horizontal">
@Html.AntiForgeryToken()
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group has-feedback">
<div class="float:left">
@Html.Label("First Name:", htmlAttributes: new { @class = "control-label col-md-2", @for = "fname" })
<div class="col-md-3">
@Html.EditorFor(model => model.Person.fName, new { htmlAttributes = new { @class = "form-control" }, name = "fname", id = "fname" })
@Html.ValidationMessageFor(model => model.Person.fName, "", new { @class = "text-danger" })
</div>
</div>
Any help on this issue would be greatly appreciated. I have checked that my referenced scripts are in the correct order.