Get the full number using intlTelInput

Sachin Pakale picture Sachin Pakale · Oct 10, 2017 · Viewed 9.8k times · Source

I am using the demo code for intlTelInput provided here

I am able to get the dial code using following

But i am not able to get the full number i.e. "dialcode + number entered by user" from the #phone text box.

Answer

Khaled picture Khaled · Feb 9, 2018

Use the getnumber option, so in your case:

var intlNumber = $("#phone").intlTelInput("getNumber");

^ This will give you the entire number (country code + phone number)

See docs here.