jquery
[jQuery]자주 쓰는 jQuery filter
IT짭스
2013. 9. 27. 15:26
자주 쓰는 jQuery filter
table의 class 속성 기준 으로 filter
$('table[class^=classname]').filter(function(){
});
a Tag 의 id 속성으로 filter
$("a[id^=btn]").filter(function(){ // 연산자는 상황에 맞게 변경 (^=, == 등)
$(this).attr('disabled','disabled');
});