|
There is no <form> tag in the DOM, so spam-bots can't see the contact form.
A an invisible field for human visitors will be added to the form.
Every time that fields gets filled in, the form will not be sent, the visitor being considered a bot, so spam.
The plugin can also be used as a stand-alone form-validator and a default-value-clearer.
The plugin's documentation is included within the demo supplied in the download package.
Here are some key features of "jQuery.validVal":
· Can be used for validating any kind of HTML-form, with very little effort.
· Supports three default value-validations: "required", "number" and "email-format".
· Easily extendable with custom value-validations.
· Supplies a workaround for the lack of support for HTML5 attributes and type-values.
· Great default "invalid-handler" that can be extended or customized.
· Can validate multiple input-fields for corresponding values.
· Enables a group of checkboxes to have at least one checkbox to be "required".
· Built in support for clearing the placeholder-value "onFocus".
· Automatically select the next input-field when the "maxlength" nth-character is entered.
· Supplies a workaround for IE's lack of support for the :focus-pseudoclass.
Requirements:
· JavaScript enabled on client side
· jQuery 1 or higher
What's New in This Release: [ read full changelog ]
· Improved support for HTML5 data-attributes.
· Improved the usage of classnames.
· Added support for serverside validations.
· Changed names of callback function.
· Removed the usage of the alt-attribute.
· Replaced "submitform" and "resetform" public methods for "submitForm" and "resetForm" custom events.
· Improved pattern validation to HTML5 specifications.
· Added "keepAttributes" option to specify the HTML5 attributes to not remove from the markup.
Via: jQuery.validVal 4.1.2
0 Comment:
Post a Comment