var name = "nama_loe";
var class = "12";
var formData = new FormData();
formData.append('nama', name);
formData.append('kelas', class);
$.ajax({
type:'POST',
url: 'url',
data: formData,
cache: false,
contentType: false,
processData: false,
async: false,
success: function(data){
// success
}
});