aF. aF. - 4 months ago 8
jQuery Question

php echo() function in jquery/javascript?

Is there a jquery/javascript function that does the same that PHP echo()?

Answer

I suppose the closest is document.write() as it's native javascript.

However there are many methods of writing/amending text in the DOM, such as innerHtml(), innerText() and outerHtml(), as well as jQuery's html() and text().