I have a form and I send all form values using the following in Jquery:
$.post('get-offers.php', $("#offerForm").serialize(), function(data)
Is there anyway I can send a non form value along with the post, for ex the id name of a div? I don’t get any response when I try the following:
$.post('get-offers.php', {$("#offerForm").serialize(), lastid: $(".box").attr("id") }, function(data)
$("#offerForm").serialize()returns a text string in standard URL-encoded notation, so you could just append to it.