본문 바로가기
jquery

해당 요소가 몇번째 요소인지 찾기 (tr td)

by 바나냥 2020. 4. 4.

tr 안에 있는 td 클릭시 몇번째 요소인지 찾기

var thNum = $(this).parent().find("td").index(this);
alert(thNum);

댓글