Copy
<style type="text/css"> .hidden {display:none;}</style><script type="text/javascript"> $(function(){ $(".tbl_head01 table tr").find("#button").on("click", function(){ var i = $(".tbl_head01 table tr").index(); $(".tbl_head01 table tr").eq(i).find(".hidden").toggle(); }) })</script>
http://mangowater.dothome.co.kr/bbs/board.php?bo_table=05_board&page=1&&sst=wr_num%2Cwr_reply&page=1
1번째 게시물을 누르면 그 게시물 뒤에 있는 메롱이 나타나고
2번째 게시물을 누르면 그 게시물 뒤에 있는 메롱이 나타나야 하는데
index 를 어떻게 잡아야 하나요?
console.log 로 보면
게속 9나 이상한 위치만 잡히네요..
|
답변 1개 / 댓글 1개
채택된 답변
+20 포인트
2016-10-27 (목) 10:59:19
wr_id 를 배열에 넣고 하면 될꺼같습니다
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.