$('#litest').html($('form').serialize());
2015-07-02
$.getJSON("http://www.imooc.com/data/sport.json",function(data)
2015-07-02
<script type="text/javascript">
$(document).ready(function() {
$("#btntest").bind("click", function () {
$("#tip").html("我被点击了!");
});
})
</script>
$(document).ready(function() {
$("#btntest").bind("click", function () {
$("#tip").html("我被点击了!");
});
})
</script>
2015-07-02
<script>
$("a").click(function(){
if ($(this).html()=='更多')
{
$(this).html('简化');
$("li:hidden").css("display","");
}
else
{
$(this).html('更多');
$("li[type='hidden']").css("display","none");
}
})
</script>
$("a").click(function(){
if ($(this).html()=='更多')
{
$(this).html('简化');
$("li:hidden").css("display","");
}
else
{
$(this).html('更多');
$("li[type='hidden']").css("display","none");
}
})
</script>
$.ajaxSetup({
dataType:"text",
type:"post",
success:function (data){
$("ul").append("<li>你输入的<b> "
);
}
});
dataType:"text",
type:"post",
success:function (data){
$("ul").append("<li>你输入的<b> "
);
}
});
2015-07-02
你说适合做导航栏 可是鼠标划过显示下拉内容后 不能点击啊(想点击的时候下拉内容隐藏了) 怎么解决这个问题呢?
2015-07-02
$(".drag").draggable({containment:"parent"});
$("#x").draggable({axis:"x"});
$("#y").draggable({axis:"y"});
参数为XY时可以随意拖动
$("#x").draggable({axis:"x"});
$("#y").draggable({axis:"y"});
参数为XY时可以随意拖动
2015-07-02
$("#content").css({"background-color":"red","color":"white"});
2015-07-01
$("button").attr("disabled","true");根据元素名获取元素,attr()方法是给该元素的参数赋值;
2015-07-01
$("div>label").css("border", "solid 5px red");
2015-06-30
$("div label").css("background-color","blue");
2015-06-30