A Better Form – A jQuery Plugin
A Better Form is a plugin I made for jQuery to help reduce spam comments, spam emails and other automated form submissions.

A Better Form allows you to omit certain attributes from HTML forms which are frequently targeted by spam-bots, such as the form tag, input fields, name attributes, and other form elements.

A Better Form is easy to use. Just follow a few simple rules when you create your HTML forms:
  1. Do not use the form tag. Use a <div> or <span> tag instead with a unique id, such as <div id="myform">
  2. Use the id attribute instead of the name attribute for all form objects or use A Better Form’s convert option to convert objects to form elements.
  3. Use a push button or image button instead of the submit type. The button you use must have the class absubmit.

Changelog
  • 7-14-2010 – 1.0.9 – Fixed a bug at line 130 which may have converted all li to select options. I may be revisiting this one. Seems there is a bug in jquery that prevents me from using $(this) selector at line 130 instead of $(“#” + e_id + ” ul li”).
  • 6-5-2010 – 1.0.8 – Fixed a bug with .absubmit class which caused all forms to submit in cases where more than one form existed on the same page.
  • 3-27-2010 – 1.0.7 – Added convert option. See the options tab for more info.
  • 3-18-2010 – 1.0.6 – Fixed bug which caused hidden fields to not have a name. Added filtertext and textfilters options. See the options tab for more info.
  • 3-17-2010 – 1.0.5 – Fixed bug which caused hidden fields to be disabled.
  • 3-16-2010 – 1.0.4 – Both keyup and change events are now used for textareas and text fields.
  • 3-14-2010 – 1.0.3 – Fixed a bug which caused all form fields on the page, including those outside of the specified object, to be disabled.
  • 3-14-2010 – 1.0.2 – Added the following options: sequential_disable, pluggable, serialized, multipart, clickonce . Refer to the Options tab for more information on those options.
  • 3-10-2010 – 1.0.1 – Fixes a typo which caused default form method to be invalid.
  • 3-5-2010 – 1.0.0 – Initial release

Leave a Comment







Submit Comment