必须改成1.9.0以下 <script src="http://libs.baidu.com/jquery/1.8.2/jquery.js" type="text/javascript"></script>
2015-12-09
$(function () {
$("input")
.bind("focus", function () {
$("div").html("请输入您的姓名!");
})
.bind("blur", function () {
if ($(this).val().length == 0)
$("div").html("你的名称不能为空!");
})
});
$("input")
.bind("focus", function () {
$("div").html("请输入您的姓名!");
})
.bind("blur", function () {
if ($(this).val().length == 0)
$("div").html("你的名称不能为空!");
})
});
2015-12-09
$(function () {
$("#btntest").bind("click", function () {
$("div").toggle(
function(){
$(this).attr("display","none");
}
)
})
});
$("#btntest").bind("click", function () {
$("div").toggle(
function(){
$(this).attr("display","none");
}
)
})
});
2015-12-09
我觉得"指定元素:first-child"应该理解为指定元素作为其父元素的第一个子元素时.
2015-12-08
$("div label").css("background-color","#ccc");
2015-12-08
$.subNum($("#Text1").val(),$("#Text2").val())
2015-12-08