How can I pass btnClicked variable via the submit
trigger in order to know the button clicked.
$('div.btn_confirm li.cancel, div.btn_confirm li.save').click(function(e){
var btnClicked = $(this).attr('class');//cancel or save
$('form#my_form').submit();
});
$('form#my_form').submit(function() {
var postData = $(this).serialize();
$.post('process.php', postData+'&btnclicked='+btnClicked);
return false;
});