Set textarea value with line breack (crlf, CR LF) using javascript
Hi,
I want to set the value of an textarea called P103_SEND_MESSAGE with line breaks in it before it get shown (via pop up site).
> <script language="JavaScript" type="text/javascript">
>function CHECK_SEND_MAIL(v_value)
>{
> if (v_value == 'YES'){
> var v_message_text = 'Test CR LF Hello, utl_tcp.crlf your task got finished';
> var url = 'f?p=&APP_ID.:103:&SESSION.::::P103_SEND_MESSAGE:' + v_message_text;
> window.open(url,'popup', 'toolbar=no,width=520,height=320,resizable=no,top=40,scrollbars=no');
> // P52_CHECK_SEND_MAIL into JS variable
> var l_field_id = document.getElementById("P52_CHECK_SEND_MAIL");
> // set value for field
> l_field_id.value = '';
> }
>}
The field get filled but the no line breaks appears.
Anybody with an idea?
Thanks ahead,
Tobias