Edit in JSFiddle

alert($('input').attr('checked'));
alert($('input').prop('checked'));

<input type="checkbox" checked>