i have no idea why in my mvc application when i do return “true” value to the check-box in view page why its tic sign is not appearing ? need help with this.
view page
<div id="maindiv">
<%: Html.CheckBoxFor(m => m.status)%>
<%: Html.LabelFor(m => m.status)%>
</div>
this is the script to set data to for checkbox
<script type="text/javascript">
$('#status').val(true);
alert(" active " + $('#status').val());
</script>
Instead of
$('#status').val(true)try;Or for jQuery 1.5 and below