Auto Complete Postal Address - Postal Address Lookup

Do you need to add auto complete address to your forms?

Single Address Field Approach

If you want a single address field, with a full address auto completed, then add both the following classes to any address field.
  • autoCompleteAddress 
  • autoCompleteFullAddress
eg
<input name=address class="autoCompleteAddress autoCompleteFullAddress">
or 
<texarea name=address class="autoCompleteAddress autoCompleteFullAddress"></textarea>
The first one initiates the autoCompleteAddress, the second one is optional, but states that the resulting address should be pasted in full into that box.

Split Address Approach

Alternatively, the first address gets the first line only, and the following approach can be used where the address is split into components. 
  • autoCompleteAddress 
  • autoCompleteAddressSuburb 
  • autoCompleteAddressCity 
  • autoCompleteAddressState 
  • autoCompleteAddressCode
  • autoCompleteAddressCountry 

Index Previous Next