in my mvc application i have a checkbox. but dont know why its value is always true. pls help
my view page
<div id="maindiv"> <%: Html.CheckBoxFor(m => m.status)%> <%: Html.LabelFor(m => m.status)%> </div> and the script is here how i am getting the value TRUE always
<script type="text/javascript"> $('#status').change(function () { alert(" active " + $('#status').val()); }); </script>