jQuery给CheckBox添加事件

<asp:CheckBox  runat="server" Checked="false" />
<table    cellspacing="0" cellpadding="0" >
<tr>
<td>123</td>
</tr>
</table>
$(function(){
$("#ckbTable").click(function () {
                if (this.checked) {
                    $("#table").css("display", "block");
                }
                else {
                    $("#table").css("display", "none");
                }
            });
});