$("li:eq(-3)").css("background-color", "#60F");
2014-12-01
$("#frmTest input:submit").css("color","red");
2014-12-01
$("#frmTest :radio").attr("disabled","true"); 不是很常用吧~
2014-12-01
$(function () {
$('#btntest').bind('click', function () {
$(this).attr("disabled", "true");
});
});
$('#btntest').bind('click', function () {
$(this).attr("disabled", "true");
});
});
2014-12-01
$(function() {
$("#btntest").bind("click", function () {
$("#tip").html("我被點擊了!");
});
});
$("#btntest").bind("click", function () {
$("#tip").html("我被點擊了!");
});
});
2014-12-01
$("#frmTest :password").addClass("bg_red"); 注:冒號前方有空格
2014-12-01
$("body").append($('.red').clone());
2014-12-01