Home > その他 > 郵便番号 > JavaScript の利用 > yubinbango.js を使用( 180 )
<head>
<script src="https://yubinbango.github.io/yubinbango/yubinbango.js" charset="UTF-8"></script>
</head><!--上記のコードです-->
<form class="h-adr">
<table>
<tr><th>郵便番号:</th><td><input type="text" class="p-postal-code" size="8" maxlength="8"></td></tr>
<tr><th>都道府県:</th><td><input type="text" class="p-region" readonly></td></tr>
<tr><th>住所:</th> <td><input type="text" class="p-locality p-street-address p-extended-address" readonly></td></tr>
</table>
</form><!--上記のコードです-->
<form class="h-adr">
<table>
<tr><th>郵便番号:</th><td><input type="text" class="p-postal-code" size="8" maxlength="8"></td></tr>
<tr><th>住所:</th> <td><input type="text" size="40" class="p-region p-locality p-street-address p-extended-address" readonly></td></tr>
</table>
</form><!--上記のコードです-->
<form class="h-adr">
<table>
<tr><th>郵便番号:</th><td><input type="text" class="p-postal-code" size="3" maxlength="3"> - <input type="text" class="p-postal-code" size="4" maxlength="4"></td></tr>
<tr><th>都道府県:</th><td><input type="text" class="p-region" readonly size="10"></td></tr>
<tr><th>市区町村:</th><td><input type="text" class="p-locality" readonly size="30"></td></tr>
<tr><th>番地/ビル名:</th><td><input type="text" class="p-street-address p-extended-address" readonly size="40"></td></tr>
</table>
</form>