객체 감추기/보이기 제어
페이지 정보
작성자 서방님 댓글 0건 조회 138회 작성일 07-08-08 09:58본문
table에 걸어도 되고 tr에 걸어도 됨
<script>
function togDis(el)
{
el.style.display = (el.currentStyle.display=='none') ? 'block' : 'none';
}
</script>
<a href="#" onclick="togDis(kaka);">toggle display</a>
<table id="kaka" style="display=none;">
<tr>
<td><input type="TEXT"></td>
</tr>
<tr id="myTr">
<td><input type="TEXT"></td>
</tr>
<tr>
<td><input type="TEXT"></td>
</tr>
</table>
댓글목록
등록된 댓글이 없습니다.