We've released an new extension for the jQuery Validation plugin that provides a more thorough credit card validation routine. It allows you to pass in the type of credit card being used, so the validation can also check card number prefix and length. This extension also allows spaces and dashes to be entered into the card number (it's up to you to strip them out when they get submitted). The extension also does mod-10 validation of the card numbers, like the core creditcard validation routine does.
Info, examples, documentation and download links are available in the Labs area of our site:
http://www.ihwy.com/Labs/jquery-validate-credit-card-extension.aspx
b13a67d4-a0ef-4634-aa65-359d22dfe7b1|2|4.5