if ($("#id").is(":checked")) { alert("Y"); } else { alert("N"); }
if ($("#id").attr("checked") == "checked") { alert("Y"); } else { alert("N"); }