jquery button disbabled
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>3-5-1</title>
<!-- 引入jQuery -->
<script src="../../scripts/jquery-1.3.1.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("#dis").click(function(){
// 复制当前点击的节点,并将它追加到<ul>元素
$("input[type='button']").each(function(){
$(this).attr("disabled","disabled");
});
})
});
</script>
</head>
<body>
<input type="button" value="按钮1" id="dis">
<input type="button" value="按钮2">]
<input type="button" value="按钮3">
<input type="button" value="按钮4">
</body>
</html>
当提交或 其它按钮操作时,在在等待时间内,需要所有按钮禁用。