jQuery jQuery Ajax 2015-04-09 Tomislav Vlahović Leave a comment 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) { } });