Hi,
I have 6 textboxes which divided into 2 groups such as group A and B.
i want to validate that amount of user keyin in each textbox must not more than 100 and the sum of those 3 textboxes for each group must not more than 100.
How can i do this validation?
<tr class="spaceUnder2">
<td width="15%" style="padding:0 15px 0 15px;">
@Html.TextBoxFor(m => m.A1 new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.WARP_ENDS_PCT1, "", new { @class = "text-danger" })
</td>
</tr>
<tr class="spaceUnder2">
<td width="15%" style="padding:0 15px 0 15px;">
@Html.TextBoxFor(m => m.A2 new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.WARP_ENDS_PCT1, "", new { @class = "text-danger" })
</td>
</tr>
<tr class="spaceUnder2">
<td width="15%" style="padding:0 15px 0 15px;">
@Html.TextBoxFor(m => m.A3 new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.WARP_ENDS_PCT1, "", new { @class = "text-danger" })
</td>
</tr>
<tr class="spaceUnder2">
<td width="15%" style="padding:0 15px 0 15px;">
@Html.TextBoxFor(m => m.B1 new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.WARP_ENDS_PCT1, "", new { @class = "text-danger" })
</td>
</tr>
<tr class="spaceUnder2">
<td width="15%" style="padding:0 15px 0 15px;">
@Html.TextBoxFor(m => m.B2 new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.WARP_ENDS_PCT1, "", new { @class = "text-danger" })
</td>
</tr>
<tr class="spaceUnder2">
<td width="15%" style="padding:0 15px 0 15px;">
@Html.TextBoxFor(m => m.B3 new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.WARP_ENDS_PCT1, "", new { @class = "text-danger" })
</td>
</tr>