사용자 도구

사이트 도구


wiki:jquery:테이블_행_tr_삭제하기

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
wiki:jquery:테이블_행_tr_삭제하기 [2020/03/09 13:49]
dhan 만듦
wiki:jquery:테이블_행_tr_삭제하기 [2023/01/13 18:44] (현재)
줄 1: 줄 1:
-====== ======+====== 테이블 행(TR) 삭제하기 ======
 <WRAP left notice 80%> <WRAP left notice 80%>
   * description :    * description : 
줄 8: 줄 8:
 <WRAP clear/> <WRAP clear/>
  
 +===== 코드 예시 =====
 <code html> <code html>
-<script type="text/javascript"+<script> 
-function deleteLine(obj) {+function deleteLine(obj) 
 + {
     var tr = $(obj).parent().parent();     var tr = $(obj).parent().parent();
-  
     //라인 삭제     //라인 삭제
     tr.remove();     tr.remove();
줄 28: 줄 28:
         <td><button onclick="deleteLine(this);">삭제</button></td>         <td><button onclick="deleteLine(this);">삭제</button></td>
     </tr>     </tr>
-  
 </table> </table>
 </code> </code>
/volume1/web/dokuwiki/data/attic/wiki/jquery/테이블_행_tr_삭제하기.1583729341.txt.gz · 마지막으로 수정됨: 2022/03/10 19:52 (바깥 편집)