I am getting an error with the below code, when using a form with ajax. I am using version 1.7.5
jQuery('#gform_wrapper_1').replaceWith('<' + 'div id='gforms_confirmation_message' class='gform_confirmation_message_1'' + '>' + confirmation_content + '<' + '/div' + '>');
The error says Expected ')'.
I assume it's because the forward slashes aren't escaped properly?