A basic math captcha plugin for jQuery
npm install jquery-captcha-basic  
A basic math captcha plugin for jQuery
jquery-captcha-basic from npm:bash
$ npm install jquery-captcha-basic
`
* Add the JavaScript file reference to your web site.
* Select the form you want to show a captcha for.
Run the captcha()* method on the form with the options you want.
* Plugin will add a simple math sum text and an input box before the submit button.$3
The basic initialization example:
`js
$(document).ready(function() {
$("#my-form").captcha();
});
`Initialization example with all options set:
`js
$(document).ready(function() {
$("#my-form").captcha({
idCaptchaText: 'customCaptchaTextId',
idCaptchaInput: 'customCaptchaInputId',
class: 'button-primary'
});
});
`Plugin Options
- idCaptchaText: The ID for the captcha text. Default is captchaText.
- idCaptchaInput: The ID for the captcha input. Default is captchaInput.
- class: Class name for the submit button toggle. Default is an empty string: ''.Development
After cloning the repo and making your changes, you can use gulp` command to uglify js files.[newissue]: https://github.com/pemre/jquery-captcha-basic/issues/new
[contributors]: https://github.com/pemre/jquery-captcha-basic/graphs/contributors
[fork]: https://github.com/pemre/jquery-captcha-basic/fork
- The base idea and codes from EbCaptcha jQuery plugin by Edon Bajrami https://github.com/DonDi1989