Currently I am using an click element to open a popup box to share some content on the social network
The code i used is :
$('#qq').attr("onclick", "window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" + encodeURIComponent(location.href) + "&title=" + encodeURIComponent(shareDes) + "&pics=" + imgStr + "', 'QQshare','toolbar=0,status=0,width=800,height=500');");
Which generate a box , and in that box there is an textarea
<textarea class="view_summary" id="summary" ><%=escHTML(summary)%></textarea>
How to clear the element inside it? I simply add $('.view_summary').empty();
after the create box code, which does not work. Thanks