jQuery(document).ready(function($) {

    if ($("form.validate").length > 0) {
        $("form.validate").validate({
            errorPlacement: function(error, element) {
                error.appendTo(element.parent('p').children('.error-placeholder'));
            },
            submitHandler: function(form) {
                $("input.submit").attr('disabled', 'disabled');
                form.submit();
            }
        });
    }

});