jquery-creditcardvalidator

WebJar for jquery-creditcardvalidator

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

jquery-creditcardvalidator
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

jquery-creditcardvalidator
WebJar for jquery-creditcardvalidator
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/PawelDecowski/jQuery-CreditCardValidator

Скачать jquery-creditcardvalidator

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/jquery-creditcardvalidator/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>jquery-creditcardvalidator</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/jquery-creditcardvalidator/
implementation 'org.webjars.bower:jquery-creditcardvalidator:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.bower/jquery-creditcardvalidator/
implementation ("org.webjars.bower:jquery-creditcardvalidator:1.0.0")
'org.webjars.bower:jquery-creditcardvalidator:jar:1.0.0'
<dependency org="org.webjars.bower" name="jquery-creditcardvalidator" rev="1.0.0">
  <artifact name="jquery-creditcardvalidator" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='jquery-creditcardvalidator', version='1.0.0')
)
libraryDependencies += "org.webjars.bower" % "jquery-creditcardvalidator" % "1.0.0"
[org.webjars.bower/jquery-creditcardvalidator "1.0.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.bower : jquery jar [1.7,)

Модули Проекта

Данный проект не имеет модулей.

jQuery Credit Card Validator

jQuery Credit Card Validator detects and validates credit card numbers. It’ll tell you the detected credit card type and whether the number length and Luhn checksum are valid for the type of card.

Installation

NPM

npm i jquery-creditcardvalidator

Download

Download the latest jquery.creditCardValidator.js.

The latest stable version is always in the master branch. If you need previous versions, you’ll find them on the releases page.

Do not use any branches other than master. Branches starting with release/ are development branches and they will most likely be broken.

How to use

Run validation every time a field value changes:

$('#cc_number').validateCreditCard(function(result) {
    if (result.valid) {
        $(this).addClass('cc-valid');
    } else {
        $(this).removeClass('cc-valid');
    }
});

Run validation once:

const result = $('#cc_number').validateCreditCard();

if (result.valid) {
    $(this).addClass('cc-valid');
} else {
    $(this).removeClass('cc-valid');
}

Documentation

For full documentation see the jQuery Credit Card Validator website.

Версии библиотеки

Версия
1.0.0