I'm using intlTelInput plugin in my project i want to get country code and phonenumber seperately i tried some solution but no results. solution 1 , Solution 2
These are the code that i tried till now
var default_c='in';
$("#mobilenum").intlTelInput({
autoFormat: false,
defaultCountry: default_c,
utilsScript: "test/lib/libphonenumber/build/utils.js"
});
somehow i got country code using this but this is not the proper way
var countrycode = $(".country[class*='active']").attr("data-dial-code");
This is what i tried to get phonenumber without country code
var intlNumber = $("#mobilenum").intlTelInput.getCleanNumber();