Hello,
question 1:
how do i get textarea value to javascript variable if the textarea contains linefeed?
it only works if the textarea contains no linefeed.
question 2:
if i submit that textarea value with POST, how do i get the value? (if the textarea contains linefeed)
Many thanks...
question 1:
how do i get textarea value to javascript variable if the textarea contains linefeed?
it only works if the textarea contains no linefeed.
Code:
var jtext = document.getElementById('idTextArea').value;
question 2:
if i submit that textarea value with POST, how do i get the value? (if the textarea contains linefeed)
Code:
$ptext = $_POST['textAreaName'];
Comment