Jump to content

Adding Lines


Twango

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...