how to get the value of a textarea in jquery?

i have this form and im trying to get the value from the text area. for some reason it doesn’t want to.

<form action="/profile/index/sendmessage" method="post" enctype="application/x-www-form-urlencoded">
    <div class="upload_form">
        <dt id="message-label"><label class="optional" for="message">Enter Message</label></dt>
        <dd id="message-element">
        <textarea cols="60" rows="5" id="message" name="message"></textarea></dd>
        <dt id="id-label">&nbsp;</dt>
        <dd id="id-element">
        <input type="hidden" id="id" value="145198" name="id"></dd>
        <dt id="send_message-label">&nbsp;</dt>
        <dd id="send_message-element">
        <input type="submit" class="sendamessage" value="Send" id="send_message" name="send_message"></dd>

$("input.sendamessage").click(function(event) {

    var message = $('textarea#message').html();
    var id      = $('input#id').val();

    console.log(message + '-' + id);

or jsfiddle

any ideas?

139 thoughts on “how to get the value of a textarea in jquery?”

  1. Just desire to say your article is as astonishing. The clarity in your post is simply
    great and i can assume you are an expert on this subject. Fine with your permission allow me to grab your RSS
    feed to keep up to date with forthcoming post. Thanks a million and please continue the gratifying work.

  2. Pingback: natural viagra
  3. Pingback: sildenafil generic
  4. Pingback: viagra online
  5. Pingback: cialis daily
  6. Pingback: cialis alternative
  7. Pingback: viagra pills
  8. Pingback: buy tadalafil
  9. Pingback: cialis france
  10. Pingback: cialis goodrx
  11. Pingback: online cialis
  12. Pingback: buy viagra hawaii
  13. Pingback: compra viagra