Problem with Textarea
Hi
I am having a Parent window containing a Button(Add-Note),clicking on AddNote buuton,a child window will comes,which has a TEXTAREA and save buuton.
My Problem is "If we enter text it should be stored in the database and should be displayed in the parent window on clicking the save button in the child window.
I should capture the enter key(Carriage return in the child window,text area.
Ex:If I enter
"first line
second line"
in the text area it should be displayed as
"first line
second line"
but it is displaying in the single line like
"firstline secondline"
I need validation in Javascript
Thanks in Advance,
Regards,
Ram.
|