How to change fontfamily of text variable that contains a textfied value Javascript
<pre><code>&lt;div id="altext"&gt;
&lt;script type="text/javascript"&gt;

function changeText2(){
    var userInput = document.getElementById('userInput').value;
    useInput.style.fontFamily='arial';
    document.getElementById('altext').innerHTML = userInput;
}


&lt;/script&gt;

&lt;/div&gt;
</code></pre>

<p>This isnt working. I want it so that the font will change to arial or to my desired font family ! Thanks alot!</p>
