I have some code that work, but I need to add some variable to the data sent by ajax.
I know, I can put this variable in the array sended, but it's no good for me.
I want to add +'&count='+'second'
Maybe I can send second array, but how?
var arr = new Array(1,2,3,4);
$.ajax({
type: 'POST',
url: baseUrl + "search/simple_filter",
data: {arr: arr}+'&count='+'second',
success: function (data) {
if (!data) console.log(data);
}
});