I am trying to read the contents of a text field but it .val()does not work for my text field. I would be happy if someone has a solution for me. Here is my code:
HTML:
<textarea id="details" class="required" rows="5"></textarea>
JS:
$.ajax({
type: "GET",
url: "reserve.php",
data: {
details : $('#details').val(),
...
},
...
});
Thank!
source
share