Trying to send array + vars with Ajax, Sending just the array worked fine…but when trying to add the vars i get empty in response.
var ar = $("select#galaddvenn").serialize();
var kat = $('input[name=kat]').val();
var bppuid = $('input[name=bppuid]').val();
j.ajax({
data: ({'ar':ar,'kat':kat,'bppuid':bppuid}), //test normal mode..array works with: data: ar,
dataType: "html",
.serialize()returns a POST-string, in the form ofa=1&b=2&c=3&d=4&e=5, so try the following instead: