11.05.2021
Телефонные маски с флагом и названием стран на разных языках
Для разного рода форм я собрал все телефонные маски с флагом страны, кодом телефона, кодом страны, а также с названиями стран на разных языках.
База телефонных масок размещена в Airtable для удобства:
Комментарии
Если по этой теме у вас возник вопрос, вы можете задать его в моём Телеграм-канале. Если вопрос по теме Airtable, то на эти вопросы я отвечаю платно, условия консультации по ссылке.
Задать вопрос по теме
Теги:
-
Airtable
Другие посты…
09.10.2021
Airtable: как запретить пользователям дублировать базы?
Для этого надо зайти в настройки воркспейса и отметить галку «Restrict adding new collaborators to this workspace and its bases».
11.08.2021
Какую нагрузку может выдержать API Airtable?
Airtable разрешает обращаться к API до 5 раз в секунду — при превышении этого лимита вам, по заявлению Airtable в документации, блокируется доступ на 30 секунд.
09.08.2021
Airtable vs. Fibery
На август 2021 лучшая альтернатива Airtable — это Fibery. В этой заметке — сравнение двух систем.
09.08.2021
Прямые альтернативы/аналоги Airtable
На данный момент знаю о нескольких решениях, которые либо прямо копируют Airtable, либо работают по очень схожему принципу.
Онлайн-курс
Airtable для начинающих
Это бесплатный курс, который поможет вам разобраться с 20% возможностей Airtable для решения 80% ваших задач
Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Ask Question
Asked
5 years, 1 month ago
Modified
5 years, 1 month ago
Viewed
18k times
1
I would like to create an input mask for phone numbers. The majority of the phone numbers will look like (123) 456 — 7890. I would like an optional country code and extension to be accepted when applicable.
(123) 456 -7890 x1234
+1 (123) 456 — 7890
+1 (123) 456 -7890 x1234
Am i able to do this with regex and jquery?
- jquery
- asp.net-mvc
- html
asked Jan 15, 2018 at 13:51
user2370664user2370664
3314 gold badges8 silver badges28 bronze badges
1
-
Dupe of this? stackoverflow.com/questions/11633726/…
– mplungjan
Jan 15, 2018 at 13:55
Add a comment
|
1 Answer
Sorted by:
Reset to default
2
I recommend you to use this jquery plugin :
https://github.com/jackocnr/intl-tel-input
$("#phone").intlTelInput();
http://jsfiddle.net/enx8ub4n/
With an example to validate user input :
https://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/is-valid-number.html
answered Jan 15, 2018 at 13:56
Quentin RogerQuentin Roger
6,3202 gold badges24 silver badges36 bronze badges
1
-
1
I would like to use jquery.mask. I just need help with the regular expression to accomplish the examples i provided above
– user2370664
Jan 17, 2018 at 15:01
Add a comment
|
Your Answer
Sign up or log in
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Name
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy
Not the answer you’re looking for? Browse other questions tagged
- jquery
- asp.net-mvc
- html
or ask your own question.
Not the answer you’re looking for? Browse other questions tagged
- jquery
- asp.net-mvc
- html
or ask your own question.
- The Overflow Blog
-
Coding 102: Writing code other people can read
-
You don’t have to build a browser in JavaScript anymore (Ep. 538)
- Featured on Meta
-
Ticket smash for [status-review] tag: Part Deux
-
Collectives: The next iteration
-
We’ve made changes to our Privacy Notice for Collectives™
-
Temporary policy: ChatGPT is banned
-
Should we burninate the [amazon] tag?
Linked
29
Phone mask with jQuery and Masked Input Plugin
Related
448
jQuery Set Cursor Position in Text Area
2506
Disable/enable an input with jQuery?
833
How to apply !important using .css()?
2569
How do I create an HTML button that acts like a link?
456
Clear form fields with jQuery
577
Disallow Twitter Bootstrap modal window from closing
25
jquery to validate phone number
1
Validating phone number with different formats WITHOUT regex
Hot Network Questions
-
What is this type of cookware called used for roasting and baking?
-
What exactly are American recipes containing «smoked sausage» or «smoked Italian sausage» referring to?
-
Who owns copyright of a photo taken by a camera after the timer is set to 10 seconds?
-
What is a rank?
-
Is there enough data in light coming from distant exoplanets for Earth-orbiting telescopes to take a high-resolution photo of it?
-
Plugging refrigerator only when necessary? (bottled beers)
-
Is there a «Free Software Philosophy Advertising» permissive license?
-
After a Ghost possesses an armored character, is it basically limited to a single attack per turn with disadvantage?
-
A book about mathematical drawing on the blackboard
-
Dual citizenship and Schengen 90/180 rule
-
Does a counterargument exist to the claim «Too much diversity is a problem/cannot be controlled»?
-
Is currency conversion and foreign transaction fee inevitable when purchasing a service from a country different from a credit card company?
-
Efficient way to store the terms of a summation in a list?
-
Was there a keyboard layout starting with «TBSY»?
-
How to remove welded metal hinges from gate?
-
I got some news for you — get active!
-
What could be the reason that my node syncs so slowly during Header Synchronization?
-
Identify someone using a double identity by tracing phone use common to the two ‘identities’?
-
Malicious code somehow hidden with whitespace?
-
Bishop and Knight exchange with opponent’s Rook and pawn
-
How important is a grounded stove outlet?
-
First story to mention the speed of light?
-
How do I unlock chests with an eyeball on it?
-
How can I give Henry Ford’s customers what they want: a faster horse?
more hot questions
Question feed
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.