jQuery Plugin To Auto Set Country Calling Codes - phonecode

    Rating: ★★★★☆
    View: 239
    Download: 209

     Great for your international website to help the users quickly enter telephone numbers. Heavily based on the Geosingh API to provide list of all countries with their alpha-2 code and country phone-code. phonecode is free software licensed under the GNU General Public License.

    1. Create a country list that will be populated with all countries provided by the Geosingh API.
    
    1
    
    2
    
    2. Create a text field to accept telephone numbers.
    
    1
    
    2
    
    3. Load jQuery JavaScript library and the jQuery phonecode plugin at the end of the html page.
    
    1
    
    2
    
    4. Call the function on the country list and specify the target telephone number input.
    
    1
    $('.sCountries').phonecode({
    2
      setClass:'phone'
    3
    });
    5. More configuration options with default values.
    
    1
    $('.sCountries').phonecode({
    2
      setClass:'phone',
    3
      bgColor: 'white',
    4
      fontColor: 'black',
    5
      prefix: true
    6
    });
    

    About Author:

    Author: jaskaranjit singh

    Website: http://www.singhcoders.com/phonecode-plugin/

    loading Đang tải...

    api được ưa chuộng