Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 802 Bytes

File metadata and controls

31 lines (24 loc) · 802 Bytes

Bring Postal Code

You fill in the postal code, and this little script will return the city for you.

Usage

  1. Add the class bring-zip to the zip input field
  2. Add the class bring-result to the city input field
  3. Initialize by running bringPostalCode();

Countries

bringPostalCode() accepts the country parameter. The following countries are supported:

Code Country
NO Norway (Default)
DK Denmark
SE Sweden
FI Finland
NL Netherlands
DE Germany
US United States
BE Belgium
FO Faroe Islands
GL  Greenland

Example: bringPostalCode({ country: 'SE' }); for Swedish cities.


Made possible by the Postal Code API by Bring

Bring logo