Streaming live at 10am (PST)

Need help with implementing code on select field

Hey guys,

I need help with auto detecting a country code (for a phone number) into a form.

I have this code for auto detecting the location of the user:

    $.getJSON('', function(json, textStatus) {
        var ip_info = json;

        c = ip_info.country_code;


I’ve inserted all of the countries and values manually into a select form field, and now I need to add the codes.

Does anyone have experience with this type of matter?

Share link:

live link: