0
I would like to know how to limit the value to be selected with Javascript.
For example, I want to take only the country indicator of the number typed, but it is different the amount of characters for each country, type, Brazil has 3 "+55", whereas the United States has only 2 "+1".
How do I get the JS to select only this indicator from that code that selects the input value:
$(this). val();
Remembering that soon after the country indicator will come a "(", for example, "+99(99)99999-9999".