$("body").append($(".red").html());
这个不能复制标签的属性
这个不能复制标签的属性
2015-01-14
$($html).appendTo("div");不能写成$("$html").appendTo("div");
2015-01-14
<script type="text/javascript">
$(function () {
$("#btntest").bind("click mouseout", function () {
$(this).attr("disabled", "true");
})
});
</script>
$(function () {
$("#btntest").bind("click mouseout", function () {
$(this).attr("disabled", "true");
})
});
</script>
2015-01-14
最赞回答 / sixGod
xxx.value是JS的取值写法,xxx.value="0"是JS的赋值写法$(xxx).val()是jquery的取值写法,$(xxx).val("0");是jquery的赋值写法
2015-01-13