How to post a form with many fields with jQuery?

后端 未结 7 2397
不知归路
不知归路 2020-12-15 06:46

Though $.ajax() can be used to do ajax things, I don\'t think its fit for posting values of a big form.

How would you post a big form (many fields) with

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-15 07:31

    What you're asking is not hard. All you have to do is collect the content of the form and pass it to your server (usually using JSON).

    Take a look at this howto:

    http://code.tutsplus.com/tutorials/submit-a-form-without-page-refresh-using-jquery--net-59

提交回复
热议问题