<script type="text/javascript"> if (//Here Check your Condition) { $("#SomeID").attr('checked', true); }
@Html.TextBox("SomeID", "someValue" ,new { type = "Checkbox",@checked=true })
ViewBag.Checkboxvale
$("#SomeID").attr('checked', true);
$("#SomeID").removeAttr('checked', true);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)