
$(document).ready(function(e) { 
    
       if($("#subscribe").length)
    {
            $("#subscribe").bootstrapValidator({        
                message: 'This value is not valid',
              
                fields: {
                  'email': {
                        validators: {
                            notEmpty: {
                                message: 'The Email should not be empty'
                            },
                         regexp: {
                                       regexp: /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/,
                                       message: "Invalid email address"
                                    }, 
                        }
                    },
                }
            });
    }
        
            });
    