Posted on: 8/12/2014 3:35:21 PM | Views : 405

I've this check box in partial view
<td> @Html.CheckBoxFor(model => model.IsSaRequired) @Html.LabelFor(model => model.IsSaRequired, new { @class = "label-inline" }) @Html.ValidationMessageFor(model => model.IsSaRequired) </td> the button i'm using to update is in a main view i.e
<input type="submit" value="Update" class="btn btn-info" />  the java script I wrote is in in the main view that is
$(function () { $('.btn btn-info').click(function () { if ($("#IsSaRequired").attr('checked') !== undefined) { return true; } else { alert("Please Select Checkbox "); return false; } }); }); But when I sub t ...

Go to the complete details ...