Skip to content

Instantly share code, notes, and snippets.

jQuery(document).ready(function() {
validate_contact_form('#contact_form');
validate_contact_form('.productsPopup');
});
function validate_contact_form(form){
var validation_fields = ["#first_name", "#last_name", "#company", "#phone"];
jQuery.each(validation_fields, function(index, value){
$(form + ' ' + value).blur(function(){