[eluser]dimasVS[/eluser]
Hi all, I get a problem..
I wanna ask, how to join 2 variables in jQuery when I wanna post this to my controller ?
For Example :
[removed]
function test(){
var data_all = $('form#mst_form').serializeArray();
var user_id = $('#user_id').val();
$.ajax({
type: 'POST',
url: '<?php site_url(); ?>test/insert',
cache: false,
data: data_all + user_id, //How to join data_all and user_id ? cause I get error message
success: function(msg){
alert('success');
}
});
}
[removed]
Thank You...