A
A
Arthur Levenson2020-05-04 08:50:29
JavaScript
Arthur Levenson, 2020-05-04 08:50:29

How to output js to html?

how to output received javascript values ​​in "price" block in html

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elvis, 2020-05-04
@Dr_Elvis

Use for example like this:

let p=document.createElement('p');
let txt=document.createTextNode(youtext);
p.append(txt);
document.getElementById('price').append(p);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question