开发者

Show as an alert instead

开发者 https://www.devze.com 2023-01-21 00:11 出处:网络
I have these lines in a script which I\'d like to show as an alert instead: mce_jQuery(\'#mce-\'+resp.result+\'-response\').show();

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());
0

精彩评论

暂无评论...
验证码 换一张
取 消