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);
but the alert displays it as-is, what do I need to change?
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);
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());