var $plusSpan = $("p").add("<span>추가된 span 요소입니다.</span>"); //alert($plusSpan); $plusSpan.appendTo("body")
<p>p 요소의 다음 요소로 span 요소를 삽입해 보겠습니다.</p>