Address input
Select a prefecture to load its municipalities into a dropdown. Uses listPrefectures and listMunicipalitiesByPrefecture. Town/street and building fields are decorative only (not passed to the API).
Initializing…
<label for="prefecture">Prefecture</label>
<select id="prefecture">
<option value="">Select a prefecture</option>
<!-- Fill options with listPrefectures() -->
</select>
<label for="municipality">Municipality</label>
<select id="municipality" disabled>
<option value="">Select a municipality</option>
<!-- On prefecture change, fill with listMunicipalitiesByPrefecture() -->
</select>
<label for="town">Town / street address</label>
<input id="town" type="text" placeholder="e.g. Marunouchi 1-1-1" />
<label for="building">Building name</label>
<input id="building" type="text" placeholder="e.g. Foo Building 3F" />