Releases: zaneray/scrupulous
Releases · zaneray/scrupulous
Changes this to el
changes this to el
Updating validity check onkeyup onmouseup etc
Now validation will trigger as you type.
Update to the equalTo method
Allow the name of the field to be passed in from the original data-attribute rather than requiring an additional data-attribute that confuses what you're doing.
Adds Custom Validity Function
Custom Validity function Needed a custom function that respects the checkValidity from the HTML5 element, and also compares to another field value to determine if it's valid.
Added Namespacing
Also modified how elements are bound to events
Respect pattern attribute first before luhn check
Update scrupulous.js Need to first respect pattern in creditcard html5 pattern attribute, return false if that fails, otherwise return the luhn check
Remove console.log
Add Luhn check method
Ability to mark an input with data-creditcard and have it return a luhn check as the validity
Remove empty field check in equalTo
No longer check if passed in element is blank when checking if equalTo parent element
Ooopsie
Left some console.logs in there.