Serialize multiple forms together?
问题 Can you serialize multiple forms into one so that only one post or ajax request is made? I have searched around and it is all for submiting each form separently via post/ajax. 回答1: When you use the jQuery serialize() function, it simply turns your form into a string in the format a=1&b=2&c=3 . So you can certainly apply this function to two forms and concatenate the result, with an & between them, and use the result in your ajax call. You'd want some checks to make sure neither string is