123

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="box">
    <form>
        <table>
            <tbody>
                <tr>
                    <th>郵便番号</th>
                    <td><input type="text" name="zip_" id="zip_"></td>
                </tr>
                <tr>
                    <th>都道府県</th>
                    <td><input type="text" name="prefectures_"></td>
                </tr>
                <tr>
                    <th>市区町村</th>
                    <td><input type="text" name="municipality_"></td>
                </tr>
                <tr>
                    <th>丁目番地</th>
                    <td><input type="text" name="address_"></td>
                </tr>
            </tbody>
        </table>
    </form>
    <form>
        <table>
            <tbody>
                <tr>
                    <th>郵便番号</th>
                    <td><input type="text" name="zip" id="zip"></td>
                </tr>
                <tr>
                    <th>都道府県</th>
                    <td>
                        <select name="prefectures" >
                            <option value="" selected="selected" class="not_select">選択して下さい</option>
                            <optgroup label="北海道・東北地方">
                                <option value="北海道">北海道</option>
                                <option value="青森県">青森県</option>
                                <option value="岩手県">岩手県</option>
                                <option value="秋田県">秋田県</option>
                                <option value="宮城県">宮城県</option>
                                <option value="山形県">山形県</option>
                                <option value="福島県">福島県</option>
                            </optgroup>
                            <optgroup label="関東地方">
                                <option value="栃木県">栃木県</option>
                                <option value="群馬県">群馬県</option>
                                <option value="茨城県">茨城県</option>
                                <option value="埼玉県">埼玉県</option>
                                <option value="東京都">東京都</option>
                                <option value="千葉県">千葉県</option>
                                <option value="神奈川県">神奈川県</option>
                            </optgroup>
                            <optgroup label="中部地方">
                                <option value="山梨県">山梨県</option>
                                <option value="長野県">長野県</option>
                                <option value="新潟県">新潟県</option>
                                <option value="富山県">富山県</option>
                                <option value="石川県">石川県</option>
                                <option value="福井県">福井県</option>
                                <option value="静岡県">静岡県</option>
                                <option value="岐阜県">岐阜県</option>
                                <option value="愛知県">愛知県</option>
                            </optgroup>
                                <optgroup label="近畿地方">
                                <option value="三重県">三重県</option>
                                <option value="滋賀県">滋賀県</option>
                                <option value="京都府">京都府</option>
                                <option value="大阪府">大阪府</option>
                                <option value="兵庫県">兵庫県</option>
                                <option value="奈良県">奈良県</option>
                                <option value="和歌山県">和歌山県</option>
                            </optgroup>
                            <optgroup label="四国地方">
                                <option value="徳島県">徳島県</option>
                                <option value="香川県">香川県</option>
                                <option value="愛媛県">愛媛県</option>
                                <option value="高知県">高知県</option>
                            </optgroup>
                            <optgroup label="中国地方">
                                <option value="鳥取県">鳥取県</option>
                                <option value="島根県">島根県</option>
                                <option value="岡山県">岡山県</option>
                                <option value="広島県">広島県</option>
                                <option value="山口県">山口県</option>
                            </optgroup>
                            <optgroup label="九州・沖縄地方">
                                <option value="福岡県">福岡県</option>
                                <option value="佐賀県">佐賀県</option>
                                <option value="長崎県">長崎県</option>
                                <option value="大分県">大分県</option>
                                <option value="熊本県">熊本県</option>
                                <option value="宮崎県">宮崎県</option>
                                <option value="鹿児島県">鹿児島県</option>
                                <option value="沖縄県">沖縄県</option>
                            </optgroup>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>市区町村</th>
                    <td><input type="text" name="municipality"></td>
                </tr>
                <tr>
                    <th>丁目番地</th>
                    <td><input type="text" name="address"></td>
                </tr>
            </tbody>
        </table>
    </form>
</div>
            
          
!
            
              .box {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  position: fixed;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 14px;
}
form:first-child {
  margin-right: 30px;
}
th,td {
  display: block;
  text-align: left;
}
            
          
!
            
              jQuery(function(){
    jQuery('#zip').keyup(function(event){
        AjaxZip3.zip2addr('zip','','prefectures','municipality','address');
    })
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console