'remove'에 해당되는 글 1건

  1. 2008/03/27 [jquery] table row 삭제
<table>
    <tr id="_tr1">
         <td>test</td>
    </tr>
</table>

<script language='javascript'>
    $("#_tr1").remove()
</script>


remove() 를 사용해서 삭제 할 수 있음

$("table").each( function(){
   // 로직
});
을 사용해서 삭제 하는것도 가능

//==================================================
<tr onClick='javascript:del(this)'>
일 경우라면
$(this).remove() 또는 $(this).get().remove()가 가능할 것 같음
 

TAG ,