how to get the value of a textarea in jquery?

前端 未结 12 2086
甜味超标
甜味超标 2020-11-27 17:55

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

12条回答
  •  再見小時候
    2020-11-27 18:34

    $('textarea#message') cannot be undefined (if by $ you mean jQuery of course).

    $('textarea#message') may be of length 0 and then $('textarea#message').val() would be empty that's all

提交回复
热议问题