Hello, I am trying to create a Credit/debit card payment form with validation. I want my form to work something like when I enter the visa card details. it should detect visa and show VISA logo only and hide other companies logo. Kindly help.I tried this code snippet -

What I have tried:

I tried the code below javascript

Code:
$(function($) {
  $('[data-numeric]').payment('restrictNumeric');
...