본문 바로가기

jquery

몇번째 요소인지

$(".tableclass").click(function(){

alert($(this).index("table"));    //table들 중 몇번째 테이블 인지

});