Welcome visitor
* Login
* Register
It is currently January 18th, 2019, 10:02 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  JavaScript line-break inside a textarea
PostPosted: December 16th, 2009, 7:49 am 

Posts: 22
Hi,

Im trying to use javascript to set the value of a textaera. The only thing that isn't working is the <br />. Do you know how to do it?

Thank you.


Top
 Profile  
 
  Re: JavaScript line-break inside a textarea
PostPosted: December 16th, 2009, 10:17 am 
User avatar

Posts: 137
\n == line brake character
document.getElementById('textareaID').value='this new \n string';


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron