79093858

Date: 2024-10-16 11:42:39
Score: 0.5
Natty:
Report link

I made it possible by writing a script in the function.

onCountryChange(event: any) {

    //this will get me the whole selected title containing name of the country and dial code of that country
  var title = $('.country .iti__selected-flag').attr('title')
//splitting both
  var splitted = title.split(':')
//getting country name
  var countryCode = splitted[1];
//getting dial code of the country
  this.UserCountryDialCode = splitted[0];
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Pankaj