87,914
社区成员
发帖
与我相关
我的任务
分享
jquery $('a.PostComment').linkbutton("disabled");
$('a.disabled').unbind()
<script type="text/javascript" src="http://www.coding123.net/js/jquery.js"></script>
<script>
$(function () {
$('a.btn').click(function () {
if ($(this).attr('class').indexOf('disabled') != -1) return false;
alert('ok')
});
});
</script>
<a href="#" class="btn">提交</a><br />
<a href="#" class="btn disabled">不可提交</a>