I am using the demo code for intlTelInput provided here
I am able to get the dial code using following
var intlNumber = $("#phone").intlTelInput("getSelectedCountryData");
Use the getnumber option, so in your case:
getnumber
var intlNumber = $("#phone").intlTelInput("getNumber");
^ This will give you the entire number (country code + phone number)
See docs here.
2.1m questions
2.1m answers
60 comments
57.0k users