I have on my website two textareas for people to write notes. one of the textareas is small and then you can click an enlarge button and a much larger textarea would pop up in a div tag.
If you type your notes in this larger textarea and have carriage returns in the textarea when you close the div/textarea i take the value out of that textarea and put it into the smaller textarea. it loses all the carriage returns when it goes into that smaller textarea.
I have read online that what is happening is when a user types a carriage return it is then ignored by html so if you do a replace on the vbCrLf with <BR> then that will fix the problem. However they were all doing this after the form was submitted and doing a replace with VBScript.
I however am not submitting the form yet its all handled with javascript. I replaced the vbCrLf with <BR> tags in javascript but doesn’t seem to be working.
[CODE]
NotesValue = document.getElementById(theNumber2).value;
NotesTemp = (NotesValue.replace(/vbCrLf/gi, “<BR>”));
NotesValue = NotesTemp;
document.getElementById(theNumber).innerHTML = NotesValue;
any ideas would be greatly appreciated