<script type="text/javascript">
jQuery('.getelo').hide();
document.addEventListener( 'wpcf7mailsent', function( event ) {
if ( '645' == event.detail.contactFormId ) { //if the form if equals #101
location = 'http://example.com/thank-you';
jQuery(".wpcf7-form").fadeOut(300);
jQuery('.getelo').fadeIn(200);
jQuery('div.button-section').addClass('getelobuttom');
}
}, false );
</script>