Minimal Math Captcha Plugin For jQuery - Captcha Basic

File Size: 19.4 KB
Views Total: 12660
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Minimal Math Captcha Plugin For jQuery - Captcha Basic

An ultra-light (less than 1kb) jQuery Math Captcha plugin that is easy to integrate into your webpage for preventing spam on forms.

How to use it:

1. Load the latest version of jQuery library and the jQuery Captcha Basic plugin's JavaScript in the document.

<script src="//code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="jquery.captcha.basic.min.js"></script>

2. Call the function captcha() on your existing HTML5 forms and the plugin will take care of the rest.

$('#yourForm').captcha();

3. Apply your own CSS styles to the captcha element as this:

#captchaInput {
  width: 2.5em;
  margin-left: .5em;
}

Change log:

2017-05-25

  • Aria label added to captcha input for AXE accessibility rules

This awesome jQuery plugin is developed by pemre. For more Advanced Usages, please check the demo page or visit the official website.