Closed Tchoukoualeu closed 4 years ago
You just edited the demo, not the library. The fix should be implemented for all users. However it should probably reject lower case IBANs...?
You are right. The way I implemented is was
input
field to upperCase
what the user type on the HTML sideupperCase
on the JS side toI think it was more efficient since inputting the IBAN with lowercase is most probably a mistake on the part of the customer.
Validate the field whether it is lower or upper case
I am using this project to help validate Iban on a project I'm currently working on. I noticed many users were having a problem with Upper and Lower case while filling up their IBAN.
Just added a quick fix that will uppercase the input in case the user enters its Iban in lower case.
I also made sure to add
style="text-transform: uppercase;"
to theid="userInput"