Hi
Is itpossible to pick up all user input within a textarea including the carriage returns?
By example, i have a text area where the user is entering the address of a client.
I wish onBlur to write that information to another location on page including the carriage returned they have entered.
At current i am using a function to collect the value and write::
Code:
function setField(where, entered) {
var update=document.getElementById(entered).value;
document.getElementById(newpos).innerHTML=update;
}
However, this process doesnt include the carriage returns and just renders one string.
if this is possible any pointers would be appreciated.
cheers
Steve
|