$.ajax({
type: "POST",
data: {
primer: primer,
id: value,
somevar: somevarvalue
},
url: "/response.php",
............
Пример с оф. доков
$.ajax({
type: "POST",
url: "some.php",
data: { name: "John", location: "Boston" }
}).done(function( msg ) {
alert( "Data Saved: " + msg );
});