$("#btntest").attr("disabled","true"); 其实这样也可以,但是不让过
2016-03-28
$("li:eq(2)").css("background-color", "#60F");
2016-03-27
<script type="text/javascript">
$("p+label").css("background-color","red");
$("p+label").css("background-color","red");
2016-03-27
<body>
<button id="btntest">点我</button>
<script type="text/javascript">
$("button").attr("disabled","true");
</script>
</body>
</html>
<button id="btntest">点我</button>
<script type="text/javascript">
$("button").attr("disabled","true");
</script>
</body>
</html>
2016-03-27
<body>
<div id="divtest">div的内容</div>
<div id="default"></div>
<script type="text/javascript">
$("#default").html($("#divtest").html());
</script>
</body>
</html>
<div id="divtest">div的内容</div>
<div id="default"></div>
<script type="text/javascript">
$("#default").html($("#divtest").html());
</script>
</body>
</html>
2016-03-26
晕,这不是"自动获得焦点"或者"自动处于选中状态"吗?
吃枣药丸.
吃枣药丸.
2016-03-26