解決しました...コードに余分なコンマがありました:
<script language="javascript" type="text/javascript">
$(document).ready(function() {
// Tabs
$("#tabs").tabs();
// Google map
$(\'#embed\').gmap3(
{action: \'addMarker\', lat:41.40372, lng:-73.45844, map:{center: true, zoom: 17, mapTypeId: google.maps.MapTypeId.ROADMAP}}
);
// Pic popup
$("#viewPics").fancybox({
\'type\': \'iframe\', \'transitionIn\': \'fade\', \'transitionOut\': \'fade\', \'width\': 900, \'height\': 500, \'autoScale\': false, \'scrolling\': \'no\'
});
// Form Validation
jQuery.validator.messages.required = "";
$("#infoForm").validate({
invalidHandler: function(e, validator) {
var errors = validator.numberOfInvalids();
if (errors) {
var message = errors == 1
? \'You missed 1 required field.\'
: \'You missed \' + errors + \' required fields\';
$("li.Error span").html(message);
$("li.Error").show();
} else {
$("li.Error").hide();
}
},
onkeyup: false,
submitHandler: function(form) {
$.ajax({
url: "01/Resources/infoRequest.php",
type: "POST",
cache:false,
data: $("#infoForm").serialize(),
dataType: "json",
success: function(data) {
$("li.Error").hide();
$("#contact_form").html(\'<div id="message"></div>\');
$("#message").html("<h2>Info Request Submitted!</h2>")
.append("<p>Thank you " + data.name + ",</p><p class=\"indent\">we recieved your info request " + data.test + " on our<br />'.$vehicle.' and will contact you shortly.</p>")
.hide()
.fadeIn(2500, function() {
$("#message").append("<p>Would you like to <a href=\"?cat=02&stock='.$stock.'\">prefill an application</a> now?</p>")
});
}
});
}, <------- This guy was the culprit
});
});
</script>