評等結果
點擊便能為這篇文章進行評等!
[評等總次數: 0,平均評等: 0]
本來都使用 twzipcode 但常常會卡在套用css排版問題很多,後來都改用aj-address。
文章最後更新日期 2017/2/22
https://github.com/uuuiii00/Aj-Address/blob/master/index.html
http://app.essoduke.org/twzipcode/
ajaddress 基本範例:
<span class="address-zone">
<select class=" form-control city" id="city" name="city">
<option value="">請選擇</option>
</select>
<select class="form-control county" id="district" name="district">
</select>
</span>
<script src="js/aj-address.js"></script>
<script>
$(document).ready(function() {
$('.address-zone').ajaddress();//地址套件
});
</script>
ajaddress 帶入預設縣市區範例:
<span class="address-zone">
<select class=" form-control city" id="city" name="city">
<option value="">請選擇</option>
</select>
<select class="form-control county" id="district" name="district">
</select>
</span>
<script src="js/aj-address.js"></script>
<script>
$(document).ready(function() {
$('.address-zone').ajaddress();//地址套件
$('#city').val('新北市');
$('#city').trigger("change");
$('#district').val('中和區');
});
</script>
評等結果
點擊便能為這篇文章進行評等!
[評等總次數: 0,平均評等: 0]