본문 바로가기

jquery

[jQuery]자주 쓰는 jQuery filter

자주 쓰는 jQuery filter
table의 class 속성 기준 으로 filter
$('table[class^=classname]').filter(function(){

});

 

a Tag 의 id 속성으로 filter

$("a[id^=btn]").filter(function(){ // 연산자는 상황에 맞게 변경 (^=, == 등)
 $(this).attr('disabled','disabled');
});