ecshop 如何调用省市地区?元素模板为您解答
<select id="country" name="country" onchange="region.changed(this, 1, 'province')" onBlur="chk_addr('region');"> -->
<!-- <option value="0">{$lang.please_select}{$name_of_region[1]}</option> -->
{foreach from=$country_list item=country}
<!-- <option value="{$country.region_id}" {if $country.region_id eq $consignee.country}selected{/if}>{$country.region_name}</option> -->
{/foreach}
</select>
<select id="province" name="province" onchange="region.changed(this, 2, 'city')" onBlur="chk_addr('region');"> -->
<!-- <option value="0">{$lang.please_select}{$name_of_region[1]}</option> -->
{foreach from=$province_list item=province}
<!-- <option value="{$province.region_id}" {if $province.region_id eq $consignee.province}selected{/if}>{$province.region_name}</option> -->
{/foreach}
</select>
<select id="city" name="city" onchange="region.changed(this, 3, 'district')" onBlur="chk_addr('region');">
<option value="0">{$lang.please_select}{$name_of_region[2]}</option>
<!-- {foreach from=$city_list item=city} -->
<option value="{$city.region_id}" {if $city.region_id eq $consignee.city}selected{/if}>{$city.region_name}</option>
<!-- {/foreach} -->
</select>
<select name="district" id="district" onBlur="chk_addr('region');">
<option value="0">{$lang.please_select}{$name_of_region[3]}</option>
<!-- {foreach from=$district_list item=district} -->
<option value="{$district.region_id}" {if $district.region_id eq $consignee.district}selected="selected"{/if}>{$district.region_name}</option>
<!-- {/foreach} -->
</select>