How to get Country ISO code?
-
Hi,
The Country drop-down HTML has a custom attribute
data-country-codewith the ISO two-character code for each country:<option value="Afghanistan" data-country-code="AF" selected="selected">Afghanistan</option>How do I retrieve this
data-country-codevalue for the selected country after the form is submitted, from PHP (I’m guessing JS is needed)?Thanks,
Kristian
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘How to get Country ISO code?’ is closed to new replies.