Test if checkbox is checked is not working

Test if checkbox is checked is not working

I am trying to see if a checkbox has been checked and nothing I've tried has worked.

$('#gpgu0').attr('checked') and .prop('checked') both return undefined
$('#gpgu0').is(':checked') always returns false

I am seeing the same results in IE9 and Firefox 18.

Am I missing something?