收货地址

默认效果

<input type="text" name="city" class="ui-form-ip" id="input-address" data-val="重庆/重庆市/武隆县" value="重庆重庆市武隆县">
<input type="hidden" name="province" id="province" value="">
<input type="hidden" name="city" id="city" value="">
<input type="hidden" name="county" id="county" value="">
<script src="/public/js/address.js"></script>
<script src="/public/js/area.js"></script>
<script>
$(function()
{
$("#input-address").address({'get':function(json)
{
$("#province").val(json.prov);
$("#city").val(json.city);
$("#county").val(json.district);
}})
})
</script>