JavaScript help

Fullmetal Chocobo

Moderator<br>Distributed Computing
Moderator
May 13, 2003
13,704
7
81
For the second option, how would I put a hard return in the line that is being copied? I tried forcing them in there, but it doesn't take into account the hard returns in the code, obviously, so I can't remember the code for it. Anyone have any idea? The code follows:

<SELECT NAME="DJ3"
ONCHANGE=' PROCTextCopyComponentValue( document.forms.form2,
DJ3.options[ DJ3.selectedIndex ].value );'
>
<OPTION VALUE="">VIOLATIONS</OPTION>
<OPTION VALUE="!!!NEED TWO LINES HERE!!!">!Security Violation!</OPTION>

Tas.

EDIT: I've tried the following character codes, and nothing works:
/r
/n
char(13) & char(30)
& # 1 3 (LOL -- this one works in here; I had to space it)
 

lansalot

Senior member
Jan 25, 2005
298
0
0
\n, not /n

edit: oh, wait. you can't in an option value line. A drop down box like this will accept one line per entry.
 

Fullmetal Chocobo

Moderator<br>Distributed Computing
Moderator
May 13, 2003
13,704
7
81
I'm working on a quick text for work. I need hard returns each item is on a seperate line, as opposed to being just word wrapped.
Tas.