Q4Widgets API Documentation

q4.emailValidation

Deprecated Overwrites the default Mailing List Signup validation. This plugin has been replaced by q4.captcha This version is used for a quick implementation and should be ignored for all future sites q4.captcha is include as part of core.js
Script link
q4.email-validation.1.1.1.min.js
Source file
q4.email-validation.js, line 2

Examples

$("#clndr").calendar();
$('.MailingListSignupContainer').emailValidation({
    captchaCSS: !!0,
    inputCSS: !!0
});

Options

errorsTpl string
A Mustache template containing the name of all fields which failed validation
Example
'<ul class="error-container">' +
     '{{#.}}' +
          '<li>{{.}} is required</li>' +
      '{{/.}}' +
 '</ul>'
captchaText string
Text displayed for captcha
invalidCaptcha string
Text used if the form is submited before the captcha is complete
submitText string
Text used inside the submit input
captchaCls string
The class name for the cpatcha's container
captchaCSS object
Inline CSS added to the captcha container
inputCSS object
Inline CSS added to captcha input