Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
160
rated 0 times [  167] [ 7]  / answers: 1 / hits: 16733  / 7 Years ago, tue, october 10, 2017, 12:00:00

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);





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


More From » jquery

 Answers
22

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.


[#56264] Sunday, October 8, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mattieparisp

Total Points: 612
Total Questions: 109
Total Answers: 104

Location: Trinidad and Tobago
Member since Fri, May 8, 2020
4 Years ago
;