javascript - Foundation Abide validation throws an error even if card number is valid -


i implementing foundation abide in following: http://alessandrosantese.com/abide/index3.html, if card number correct (tested visa) still throws error when click on submit. happens if type card number in first , click on submit.

i have overwritten pattern card 1 of visa regex using project.

<script> $(document)   .foundation({     abide : {       patterns: {         dashes_only: /^[0-9-]*$/,         ip_address: /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,         card:/^4(?:[0-9]{12}|[0-9]{15})/       }     }   }); </script> 


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -