Ajax Plugin Not Echoing Response
This is the final code I am using. Thanks to webaware for pointing out that I was not using the correct datatype. jQuery(document).ready(function($) { $(‘.audience_intel_container .close’).click(function(){ $(‘.audience_intel_container’).fadeOut(‘fast’, function(){ }); }); $(‘.audience_intel_container button’).click(function(){ console.log(‘clicked’); var formdata = $(‘#audience_intel_form’).serialize(); $.ajax({ type : “post”, dataType : “html”, url : audience_intel_js.ajaxurl, data : ‘action=audience_intel&’+formdata, success: function(response) { alert(response); $(‘.audience_intel_container’).html(response); … Read more