I have two tabs, both contains forms Now I have one common submit button for which my onclick event is here -
var data = $('#fm').serializeArray();
data.push({name: 'id', value: row.id});
$.post('save_detail.php',
data,
function(data2){
$.messager.alert('Info', data2, 'info',function(){
$('#dlg').dialog('close');
});
}
);
Now what i want to do is have a seperate form in two tabs and then send both their data together. I already tried -
var data2 = $('#fm2').serializeArray();
data.push(data2);
But failed. So how can i do it, can anyone help?