If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I hate not knowing: adding text to a textarea on submit

This seems to be pretty basic but I cannot get it exactly the way I want it. Note: I have been looking for 4 days on how to resolve this.

Issue:

I created a form to be used on my work intranet (ie7 / Outlook) which will email the form textarea answers to the specified email address via Mailto (plain/text) and I want to add a carriage return after each text area on submit.

Reason:

This is for a staff quiz page (no access to php on this server so using mailto), and the text is too cramped when sent by the email. I want to add spacers between each question response.

What I have working:

This works but only on the textarea with ID = A1 and I have it as an onchange event. My form does not have a submit button (sent via another script) so I also not sure how to execure onSubmit.

I'm not sure I understand the problem, but are you trying to add new lines between the Q responses?

If yes, have you tried to add '\n\n' to the end of the <textarea> values before submission?

Thanks for the reply.

The problem is that in in Outlook 2003 the mailto response from the form quiz does not include line breaks between responses so the output looks like below. I am trying to force spaces between the questions so the output is more spaced and managable to read.

I did try some jQuery that worked but not exactly correct. The spaces are being added like a placeholder instead. I thought an onBlur would work but if someone left and came back to the box they would trigger it again. How would I change the following into an onsubmit event?