type: 'POST', success: function(data) { html = ''; $('#mc_embed_signup').html(html); }, error: function(data){ alert("error"); } }); }