2017-04-14 17 views
2

제출할 때 집과 직장 주소가 필요한 등록 양식을 작성 중입니다. 다음과 같은 필드가 있습니다 : 나는 좋은 브라우저 호환 자동 완성 양식을 만들 http://microformats.org/wiki/hcardhttps://html.spec.whatwg.org/multipage/forms.html#attr-fe-autocomplete-organization-title을 사용하고HTML 양식 자동 완성 주소 의미

<html> 
    <form> 
    <input name="street-address" autocomplete="home street-address" required /> 
    <input name="postal-code" autocomplete="home postal-code" required /> 
    <input name="locality" autocomplete="home locality" required /> <!-- or "home city" --> 

    <input name="organization" autocomplete="organization" required /> 
    <!-- addressee or department withing the organization. optional field --> 
    <input name="addressee" autocomplete="????????" /> 
    <input name="work-street-address" autocomplete="work street-address" required /> 
    <input name="work-postal-code" autocomplete="work postal-code" required /> 
    <input name="work-locality" autocomplete="work locality" required /> 
    </form> 
</html> 

.

내가 알아낼 수없는 것은 수신자/부서 필드에 좋은 자동 완성 이름이 있는지입니다. 누구나이 입력에 익숙합니까?

답변

1

street-address 전체를 사용한다고 가정합니다. 주소 줄 1을 사용하려는 경우 address-line1을 시도하십시오.

는 또한 MDN Specification here

Google Developers page 참조 (참고 :이 예제에서는 locality, ...를 볼 수 있지만 사용되지 않습니다 사용합니다.)