I am working with a javascript function which takes a value from a <input type="text" /> and then write it as a text without being an input. I do this using innerHTML and it works perfectly.
My question is: How can I use a CSS class to edit the color and size of the text I am writting with innerHTML
var element = document.getElementById("element");
var value = document.getElementById("value").value;
element.innerHTML = value;
Thank You!
JavaScript:
CSS: