jQuery prop method

HTML

<input id="hoge" checked="">

JavaScript

alert($("#hoge").attr("checked"));
alert($("#hoge").prop("checked"));