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.
1.4m articles
1.4m replys
5 comments
57.0k users