Targeting multiple forms to send via ajax (jquery)

前端 未结 5 720
暖寄归人
暖寄归人 2020-12-03 16:17

I have multiple forms on my page. When I click the forms submit button, I want to send the form value of only that form through ajax. Here is what I have. The first form w

5条回答
  •  没有蜡笔的小新
    2020-12-03 16:57

    Don't use same id for multiple elements. Use class instead.
    Change your code to this:

提交回复
热议问题