// VALIDATION + AJAX FORM
$(document).ready(function(){
	$('#contactform').validate({
	
		errorPlacement: function(error, element) {
        	$(element).closest('.rowElem').after(error); //the method closest get the closest parent with class rowElem
		},
				         
	     submitHandler: function(form) {
	     
	       $(form).ajaxSubmit({
	            success: function() {
	                $('#contactform').hide();
	                $('.contact-col h4').hide();
	                $('#contact-col-form').append("<p class='thanks'>Thanks! Your message has been sent.</p>")
	            }
	       });
	     }
         
    });
});