jquery ajax form submit

前端 未结 3 1058
说谎
说谎 2020-12-04 00:22

Is this code correct? I\'m trying to submit it and also I would like on submit if text area would be empty again.



        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 01:04

    Looks good. To empty the textarea use the following in the ajax success callback:

    $("#mess_ar").val('');
    

提交回复
热议问题