Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
1つのフォームと1つの他の値のコーディングを同じ行に投稿するにはどうすればよいですか?
ありがとう。
$.ajax({ type: "POST", url: "...", data: $('.form').serialize(), & id = 10, // not work success: .... });
$.ajax({ type: "POST", url: "...", data: $('.form').serialize()+'&id = 10', success: .... });
その値を個別に送信することもできます。
$.ajax({ type: "POST", url: "...", data: {form : $('.form').serialize(),id: '10'}, success: .... });