I can not figure out the syntax for this.
Here’s my code:
$('select[id^="lookup_"]').change(function() {
var d = $("#lookupform").serializeArray();
// This is the problem line
d.push("field=" + $(this).id);
hash = { type: "POST", url: "/map/details", data: d };
$.ajax(hash);
return false;
});
I know that problem line is totally wrong. I basically want to let the server side know from which the submission came from. Can anyone help?
this should do: