You wrote different id of check box its wrong
<input type="checkbox" name="planned_checked" id="planned_checked">
function actual_planned_path(time)
{
if($("#planned_checked").prop('checked') == true)
{
checkbox_cheked();
}
else
{
checkbox_uncheked();
}
}
now it works
you can check from jfiddle also
Check Preview