I'm using AjaxChimp to use ajax to submit a sign up form to MailChimp.
The issue I have is that I'm using a callback function as in this example here: AJAX Mailchimp signup form integration
but I would like to trap and modify the response text I get back from MailChimp. My code is:
<script type="text/javascript">
$(function() {
$('form').ajaxChimp({
callback: function(response) {
$('form .result').text(response.msg);
}
});
})
</script>
Any help in how to do this is very much appreciated. I'm a javascript beginner.
Thanks,
Mark