jessepollak / jessepollak/card

Change event on expiry month not firing when two inputs used for valid to field

Open
#281 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
SCSS
Stars
11.7k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

When using two different inputs for Valid to (Month and year), the change event it's not firing on the month field.

`

```
var initCard = function () {
new Card({
form: document.querySelector('form'),
container: '.card-wrapper',
formSelectors: {
expiryInput: ['input[name="expirymonth"]', 'input[name="expiryyear"]'] }
});
}

$(document).ready(function () {
initCard();

$('input[name="expirymonth"]').change(function () {
console.log("hey");
});

$('input[name="expiryyear"]').change(function () {
console.log("hey you");
});

});
```

`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.