I am trying to read the content of a textarea, but .val()
does not work for my textarea.
I would be happy, if someone has a solution for me.
Here's my code:
HTML:
<textarea id="details" class="required" rows="5"></textarea>
JS:
$.ajax({
type: "GET",
url: "reserve.php",
data: {
details : $('#details').val(),
...
},
...
});
Thank you!
` tag - you have to replace `\n` with `
` to preserve the formatting when displaying back in HTML. – Shadow The GPT Wizard Aug 02 '12 at 10:35