I have an input control:
<input type="checkbox" id="chkMyPlan" class="MyPlanChecked" data-id="<%#Eval("ContentBlockId") %>" checked="<%# Eval("IsChecked")%>" />
the class is an empty class in my .css file
When I save (which works fine):
$(".MyPlanChecked").each(function () {
$(this).click(function () {
var ContentBlockId = $(this).attr("data-id");
var IsChecked = $(this).prop('checked');
_def_scripts.saveMyPlanChecked(ContentBlockId, IsChecked);
})
});
But when I try to populate the check box I don't get the expected results on the check box. The data returned for IsChecked is either true or false (I confirmed what was returned was correct)
I am binding it via server side:
Go to the complete details ...