$("button").click(function () {
                // 나자신(버튼)을 <div> 태그로 변경하자.
                $(this).replaceWith("<div>" + $(this).text() + "</div>");
            });

'Jquery' 카테고리의 다른 글

sortable  (0) 2011.11.25
slideToggle  (0) 2011.11.25
not(), filter()  (0) 2011.11.25
라디오버튼의 체크된 value  (0) 2011.11.25
다중 속성 지정  (0) 2011.11.25

+ Recent posts