"JQuery .html()"의 두 판 사이의 차이

12번째 줄: 12번째 줄:


==같이 보기==
==같이 보기==
*[[jQuery val(), text(), html()]]
*[[jQuery .text()]]
*[[jQuery .text()]]
*[[jQuery .append()]]
*[[jQuery .append()]]

2016년 7월 31일 (일) 22:39 판

  다른 뜻에 대해서는 html 태그 문서를 참조하십시오.

1 개요

jQuery .html()
  • 매치된 요소 중 첫번째 요소의 HTML 내용을 인출하는 메소드
  • XML문서는 지원안함
$("button").click(function(){
    $("p").html("안녕 친구들!");
});

2 같이 보기

3 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}