var object_id = $(this).attr('id'), ajax_url = '<?php echo admin_url('admin-ajax.php'); ?>'; $.ajax({ url: ajax_url, type: 'POST', data: { action : '', am2_payload: am2_payload }, success: function (response) { } });
var object_id = $(this).attr('id'), ajax_url = '<?php echo admin_url('admin-ajax.php'); ?>'; $.ajax({ url: ajax_url, type: 'POST', data: { action : '', am2_payload: am2_payload }, success: function (response) { } });