Forum Moderators: open
Does anyone know how to add a line break into a text area.
Below is a really simplified version of what I need to do.
$Ptext1="Here would be text for paragraph 1"
$Ptext2="Here would be text for paragraph 2"
<script language="JavaScript">
<!--
function ShowText1() {
var TheText=$Ptext1 + *****NEEDLINEBREAK***** Ptext2;
OptionText.TextAREA.value=TheText;
}
-->
</script>
<form Name="OptionText">
<input type="checkbox" name="TextOption1" onclick="ShowText1()">
<textarea rows="5" name="TextAREA"></textarea>
</form>
Kind Regards
Walker