1) If your HTML markup is:
<input type="checkbox" />
attr used:
$(element).attr("checked"); //will Will give you undefined as initial value of checkbox is not set
If prop is used :
$(element).prop("checked"); //will Will give you false whether or not initial value is set
2) If your HTML markup is:
<input type="checkbox" checked="checked" />// mayMay be like this also checked="true"
attr used:
$(element).attr("checked") //will Will return checked whether it is checked="true"
propProp used:
$(element).prop("checked") //will Will return true whether checked="checked"