$("form *").attr("disabled", "true");
$("form *").attr("disabled", "false");
实现的效果是一样的。。。怎么解释呢?
$("form *").attr("disabled", "false");
实现的效果是一样的。。。怎么解释呢?
2015-05-17
var $redHTML = $(".red").html();
$(".green").html($redHTML)
$(".green").html($redHTML)
2015-05-17
1.$("#btntest").attr("disabled","true");// find button by id
2.$("button").attr("disabled","true");// find button by element name
As there is only one button in the html document, so both of them have same effects...
2.$("button").attr("disabled","true");// find button by element name
As there is only one button in the html document, so both of them have same effects...
2015-05-17
sorry. a bit error in the code.
$(#divtest).html() should be as $("#divtest").html()
$(#divtest).html() should be as $("#divtest").html()
2015-05-17
$("#default").html($(#divtest).html());
1.$(#divtest).html() -->get divtest element inner html value.
2.$("#default").html() --> get default div element and setup its value.
1.$(#divtest).html() -->get divtest element inner html value.
2.$("#default").html() --> get default div element and setup its value.
2015-05-17
在学习的过程中用的 Sublime Text2开发工具效率是高,就是没有用DW时 细节标点符号什么的写错了会报错!
2015-05-17
<script type="text/javascript">
$(document).ready(function(){
$("#btntest").bind("click", function(){
$("#tip").html("我被点击了!");
});
});
$(document).ready(function(){
$("#btntest").bind("click", function(){
$("#tip").html("我被点击了!");
});
});
2015-05-17
<script type="text/javascript">
$(document).ready(function(){
$("#btntest").click(function(){
$("#tip").html("我被点击了");
});
});
$(document).ready(function(){
$("#btntest").click(function(){
$("#tip").html("我被点击了");
});
});
2015-05-17