- 筛选器
-> http://blog.csdn.net/lijinwei112/article/details/6938134
常用到的:
$("tr[id=ac_"+id+"]").show();
<!-- 1.-->
$(":checkbox[name=select_" + id + "_checkbox][checkbox=true]").each(function(){ });
<!-- 2.-->
var ac;
$('input[id*='+ac+']').each(function(){ })
- 控制标签的显隐
.bind(); -> http://www.w3school.com.cn/jquery/event_bind.asp
.show();
.hide(); -> http://www.w3school.com.cn/jquery/effect_show.asp
//折叠菜单
$(function() {
$('.href_span').bind( 'click',
function() {
var id = $(this).attr("id");
if($(this).html() == "+"){
$("tr[id=ac_"+id+"]").show();
$(this).html("-");
}else{
$("tr[id=ac_"+id+"]").hide();
$(this).html("+");
}
}
);
});
- 操作元素style属性
-> http://www.nowamagic.net/librarys/posts/jquery/27
$(".state_4").css("color","#F75000");//黄