Modify POST vars before post, using jQuery

前端 未结 8 715
醉话见心
醉话见心 2020-12-29 18:34

I have a form, and a submit handler in jQuery.

When the user submits the form, I want to modify (add) some parameters to the POST request, before it is despatched fr

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-29 19:01

    You can hook the click event of the submit button and do your processing there. For the key/value pairs you might try a hidden form element.

提交回复
热议问题