jQuery serialize error with textarea filed

后端 未结 3 1504
南旧
南旧 2021-01-18 06:28

I\'m using this function, to submit form in the background, with custom messages. It works perfectly, except with textarea fields. I\'ve read that the serialize function has

3条回答
  •  抹茶落季
    2021-01-18 07:25

    Here main_post_txt is the id of html text area element which you are using and in jquery you can get easily its value by using

    var post_text = $("#main_post_txt").serialize();  
    

提交回复
热议问题