checkbox is checked

by shengoo

HTML

<input id="c" type="checkbox" />
<label for="c">checkbox</label>
<input id="click" type="button" value="click" />

JavaScript

$(function(){
    $("#click").click(function(){
       alert($("#c").is(":checked") ); 
    });
});