jQuery serialize() leaves out textarea

前端 未结 9 1981
醉梦人生
醉梦人生 2020-12-16 11:33

When I submit a form using jQuery\'s serialize() method, everything gets submitted except the textarea in the form. Is this a common issue? I can\'t figure it out. The form

9条回答
  •  北荒
    北荒 (楼主)
    2020-12-16 11:49

    It leaves out the textarea , unless you Remove 'form="new_note_form"' from your textarea element.

    I know it's against good practices, but, if you want to use jQuery's serialize function, you gotta remove this attribute from textarea element.

提交回复
热议问题