I\'m trying to submit a form witch sends an email:
JS
var that = $(this); $.ajax({ url: \'../wp-content/themes/bsj/php/validate.php\',
Try to set response dataType property directly:
dataType: 'text'
and put
die('');
in the end of your php file. You've got error callback cause jquery cannot parse your response. In anyway, you may use a "complete:" callback, just to make sure your request has been processed.