$("frmteat:checkbox").attr("checked","false");
2015-12-28
$("#frmtest input:submit").attr("value","掉我就提交");
2015-12-28
$("div").toggle();调用元素对象的toggle()无参数方法,如果元素显示,则隐藏,否则,就显示。
2015-12-28
<script type="text/javascript">
function afunction(){
if($("a").html()=="..."){
$("div").show();
$("a").html("简化");
}else{
$("div").hide();
$("a").html("...");
}
}
</script>
function afunction(){
if($("a").html()=="..."){
$("div").show();
$("a").html("简化");
}else{
$("div").hide();
$("a").html("...");
}
}
</script>
$("#content").css("background-color","red").css("color","white");
2015-12-28
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>
$("#content").css({"background-color":"red","color":"white"});
不灵活,这样能通过
不灵活,这样能通过
2015-12-27
li:first-child为li元素集合中作为子元素的第一个 li:first为li元素集合中的第一个
2015-12-27