I have these lines in a script which I'd like to show as an alert instead:
mce_jQuery('#mce-'+resp.result+'-response').show();
mce_jQuery('#mce-'+resp.result+'-response').html(msg);
开发者_C百科but the alert displays it as-is, what do I need to change?
I'm not sure if I understand you well, but you might want to alert
the text-contents from that element.
Would look like
alert(mce_jQuery('#mce-'+resp.result+'-response').text());
alert($('#mce-'+resp.result+'-response').html());
精彩评论