Pass extra variable when submitting a form using jQuery

前端 未结 5 2159
野性不改
野性不改 2021-02-12 12:53

I have a form in which the Submit button does not sit within the

tags. The submit button has an click handler to submit the form via jQuer
5条回答
  •  一生所求
    2021-02-12 13:17

    If you wanted to do it straight from an element which was changed without writing a submit handler, this works:

    
    

提交回复
热议问题