Twango Posted January 20, 2010 Share Posted January 20, 2010 Hello, with javascript i am trying to add a line to a textarea, here is what im using: cs=document.getElementById('source').value;function showElement(id){document.getElementById(id).style.display="inline";}function hideElement(id){document.getElementById(id).style.display="none";}function us(content){document.getElementById('source').value=content;}function updatesource(){cs=document.getElementById('source').value;return cs;}function ac(content){us(updatesource() + content + "\n");}function acp(content){us("<p>" + content + "</p>");} why isn't this working?thanks! Link to comment Share on other sites More sharing options...
justsomeguy Posted January 20, 2010 Share Posted January 20, 2010 Which of those many functions do you run to add a linebreak? Why do you need more than one function? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.