On Oct 10, 2009, at 12:26 PM, Nivo wrote:


There is a textarea with id 'tresc'.

Am taking data from it by:
var tresc = $("#tresc");
then ->
tresc.val()

How i can add <br> tag after every new line, so I can add this do the
database or sent by mail? Was googling for solution for about 3 hours,
nothing works.

Cheers.

I wouldn't rely on JavaScript for handling user input. Why not just do it with your server-side code when the form is handled (before the input is stored in the database or sent by mail)?

--Karl

____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com

Reply via email to