Im stuck in validating cards. I have visa, american express, master card, JCB, union pay,sct and maestro. I have listed them in a select form. Now I want to validate when user select any of them , the input field should match with selected card according to their pattern. I have validate date but this card validation has giving me hard time since I could not find any good tutorial or code example.
Can anybody help with this, with code or example or links?