Need help? Reach out to us anytime.
Email: [email protected]
Live Chat: Live chat with our service team by clicking the "Live Chat" icon. To do this, you will need to be logged in to our secure site.
Phone: Call 877.497.2637
Payments: Pay online or mail your payment to BerkleyNet, P.O. Box 535080, Atlanta, GA 30353
File a Claim: Fill out this form or call us at any time, 24/7.
The FormValidation instance
// data.field --> The field name
// data.element --> The field element
// Get the messages of field
var messages = data.fv.getMessages(data.element);
// Remove the field messages if they're already available
$('#contactsusForm_errors').find('li[data-field="' + data.field + '"]').remove();
// Loop over the messages
for (var i in messages) {
// Create new 'li' element to show the message
$('
')
.attr('data-field', data.field)
.wrapInner(
$('
')
.attr('href', 'javascript: void(0);')
.html(messages[i])
.on('click', function(e) {
// Focus on the invalid field
data.element.focus();
})
)
.appendTo('#contactsusForm_errors');
}
// Hide the default message
// data.element.data('fv.messages') returns the field messages element
data.element
.data('fv.messages')
.find('.help-block[data-fv-for="' + data.field + '"]')
.hide();
})
.on('success.field.fv', function(e, data) {
// Remove the field messages
$('#contactsusForm_errors').find('li[data-field="' + data.field + '"]').remove();
});
});
var verifyCallback = function(response) {
console.log(response);
return false;
};
var onloadCallback = function() {
$("#html_element").html("");
grecaptcha.render('html_element', {
'sitekey' : '6LeM7AgUAAAAAOJoPqOk8rEcXTV1aWF0rakbHAKy',
'callback' : verifyCallback
});
};