jessepollak / jessepollak/card
Change event on expiry month not firing when two inputs used for valid to field
- 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
Assessment
This issue has not been assessed yet.