답변 2개
채택된 답변
+20 포인트
4년 전
</p>
<p>
<table border=1>
<tr class='c1' style='display:none'>
<td>1-1-1</td><td>1-1-2</td><td>1-1-3</td>
</tr>
<tr class='c1' style='display:none'>
<td>1-2-1</td><td>1-2-2</td><td>1-2-3</td>
</tr>
<tr class='c2' style='display:none'>
<td>2-1-1</td><td>2-1-2</td><td>2-1-3</td>
</tr> <tr class='c2' style='display:none'>
<td>2-2-1</td><td>2-2-2</td><td>2-2-3</td>
</tr>
<tr class='c3' style='display:none'>
<td>3-1-1</td><td>3-1-2</td><td>3-1-3</td>
</tr> <tr class='c3' style='display:none'>
<td>3-2-1</td><td>3-2-2</td><td>3-2-3</td>
</tr>
</table>
<button class='btn' showTr='c1'>버튼1</button>
<button class='btn' showTr='c2'>버튼2</button>
<button class='btn' showTr='c3'>버튼3</button></p>
<p><script></p>
<p>$(".btn").click(function(){
var showTr = $(this).attr("showTr");
$('tr').hide();
$("."+showTr).show(); // 선택된것만 보이게
});</p>
<p></script></p>
<p>
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인