一个jQuery插件,用于输入和验证的国际电话号码:International Telephone Input
jopen
10年前
International Telephone Input是一个jQuery插件,用于输入和验证的国际电话号码。
它会在任何输入下拉框看增加一个旗帜。其中列出了所有的国家和他们的国际拨号代码。
特性:
- 自动格式化数字当用户输入时
- Automatically set the input placeholder to an example number for the selected country
- Navigate the country dropdown by typing a country's name, or using up/down keys
- Selecting a country from the dropdown will update the dial code in the input
- Typing a different dial code will automatically update the displayed flag
- Dropdown appears above or below the input depending on available space/scroll position
- Lots of initialisation options for customisation, as well as public methods for interaction