【发布时间】:2011-07-24 10:21:56
【问题描述】:
我有一些 here 似乎无法帮助我禁用提交按钮。有什么想法吗?
<input type="checkbox" checked="checked" id="checky"><a href="#">terms and conditions</a>
<input type="submit" id="postme" value="submit">
$('#checky').click(function(){
if($(this).checked == false){
$('#postme').attr("disabled","disabled");
} else {
$('#postme').removeAttr('disabled');
}
});
【问题讨论】:
标签: javascript jquery checkbox