A helper for credit card number fields
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
jquery.creditcard-0.1.js

README

A helper class for credit card number fields.

Currently only detects a card type and adds the appropriate class (for styling).


Usage:
<script type="text/javscript">
$(document).ready(function() {
  $('.credit_card_number').creditCard()
});
</script>

TODO:
Luhn Check
Misc. validation (card length, etc.)
Custom callback on match