A
A
Alex_872019-11-20 15:47:12
JavaScript
Alex_87, 2019-11-20 15:47:12

How to write json object to tag?

Good day everyone! Please help me with the following question. I am getting JSON object id output. BUT, I only see the object in the browser. How to make it so that it was in the tag itself - physically!!!
Now it is displayed in Id output, but the markup itself is empty. https://codepen.io/Alexei_87/pen/ZEEPEaz PS Sorry for not being edited properly in codepen. I do not know how to do it
<pre id="output"></pre>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Kuzyakin, 2019-11-20
@Posho

> BUT, I only see the object in the browser. How to make it so that it was in the tag itself - physically!!!
Of course, you only see it in the browser, it's JavaScript. so that it is physically in the tag itself - use any server-side PL and do everything on the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question