jQuery(document).ready(function(){ jQuery("button.btnSend").click(function(){ var form = jQuery(this).closest('form'); jQuery.ajax({type:'POST', url: 'https://www.ta-coding.com/wp-content/themes/brazil-wp/inc/contactus/contact2.php', data:jQuery(form).serialize(), success: function(response) { if(parseInt(response)>0) { if(jQuery(form).find("#spanMessage").length) jQuery(form).find("#spanMessage").html('
Well done! Your message has been sent.
'); else alert('Your message has been sent.'); } else{ if(jQuery(form).find("#spanMessage").length) jQuery(form).find("#spanMessage").html('
Error! Something Wrong
'); else alert('Something wrong!'); } }}); }); }); WordPress › Error

There has been a critical error on this website.

Learn more about troubleshooting WordPress.