sending post data with jquery on form submission

后端 未结 2 755
梦毁少年i
梦毁少年i 2021-02-09 00:52

If I have this form which submits the post data to the page itself:

2条回答
  •  一个人的身影
    2021-02-09 01:11

    Rather than using a submit button, use a regular button and control the submission via Javascript. In your javascript, you need to serialize the form and pass it as data along with anything else you want.

    
    
    
      
      
    
    

提交回复
热议问题