Jquery
replaceWith
시크유
2011. 11. 25. 11:33
$("button").click(function () {
// 나자신(버튼)을 <div> 태그로 변경하자.
$(this).replaceWith("<div>" + $(this).text() + "</div>");
});