Credit Card Fields: Static Changes

You can separate month and year into their own fields by substituting the two divs splitit-expiration-month and splitit-expiration-year for the single div with id splitit-expiration-date. You also need to add selectors for the new fields in your JavaScript (and delete the configuration for splitit-expiration-date):
expirationYear: {
selector: "#splitit-expiration-year"
expirationMonth: {
selector: "#splitit-expiration-month"
Note that this change doesn't work in horizontal mode.
You can alter other visual aspects of the credit card fields by targeting them with CSS, and you can change the location of the error messages (see the section below on error box customization).
Last modified 7mo ago