Friday, August 12, 2011

[jQuery] 清空append 了的內容 (Clear append)

$('your_selector').empty();

Use your selector name to replace "your_selector",
than it will clear the content that you appended by using jQuery.

將上面your_selector的字眼改成你想要的字眼即可,
換句話說,加入.empty()這個動作即可。

No comments :

Post a Comment