Closed Hector-Machado closed 1 month ago
Please see the Recommended Usage section of the readme - we recommend you DO NOT store the country/dial code separate to the phone number. We recommend you just save one string to your database, and that is the number in full international format. Then when you initialise the plugin on an input containing that full intl number, it will automatically select the right country and re-format the number appropriately (according to whichever initialisation options you use). Does that make sense?
Closing due to inactivity.
I want to select country from dialCode.
Because I receive the dialCode value, saved in the database and when I want to access that input again I need it to be selected with the option that the user selected when they created their phone number, but I have the dialCode, I would have to transform the dialcode in country code to work?