I have following html control in view:
<%= Html.CheckBox("MyStatus", (item.MyStatus>0)?true:false)%>
Then I want to get the value for this checkbox: if it is checked, return true, otherwise return false. I try it as below:
$("#MyStatus").attr("checked").value
but I can't get the right value.
How to resolve it?