submit the form using ajax

后端 未结 8 902
栀梦
栀梦 2020-12-05 10:17

I\'m developing an application (a kind of social network for my university). I need to add a comment (insert a row in a specific database). To do this, I have a HTML form in

8条回答
  •  误落风尘
    2020-12-05 10:59

    You can add an onclick function to your submit button, but you won't be able to submit your function by pressing enter. For my part, I use this:

    Your Name

    Hope it helps.

提交回复
热议问题