How do I make this work? I'm trying to do AJAX post. i'm use to doing .serialize but i want to add two more values and keys to the array. how can I do this easily?
$('#moreprojects').click(function(){
var skip = $(this).attr('name');
var more = $(this).attr('rel');
var param = $('#companies').serializeArray();
param.push({name: 'skip', value: skip})
param.push({name: 'more', value: more})
$.post('projectsmore.php', {param}, function(response){
$('#projects tbody').append(response);
})
})