<script type="text/javascript">
$(document).ready(function () {
$('.select_area').LocationSelect({
labels: ["<?php _e('请选择省份或直辖市'); ?>", "<?php _e('请选择城市'); ?>"],
elements: document.getElementsByTagName("select"),
detector: function () {
this.select(["<?php echo $_GET['province']; ?>", "<?php echo $_GET['city']; ?>"]);
},
dataUrl: G_BASE_URL + '/account/ajax/areas_json_data/'
});
});
</script>
{{{
<script type="text/javascript">
$(document).ready(function () {
$('.select_area').LocationSelect({
labels: ["<?php _e('请选择省份或直辖市'); ?>", "<?php _e('请选择城市'); ?>"],
elements: document.getElementsByTagName("select"),
detector: function () {
this.select(["<?php echo $_GET['province']; ?>", "<?php echo $_GET['city']; ?>"]);
},
dataUrl: G_BASE_URL + '/account/ajax/areas_json_data/'
});
});
</script>
<pre class="brush: javascript"><script type="text/javascript">
$(document).ready(function () {
$('.select_area').LocationSelect({
labels: ["<?php _e('请选择省份或直辖市'); ?>", "<?php _e('请选择城市'); ?>"],
elements: document.getElementsByTagName("select"),
detector: function () {
this.select(["<?php echo $_GET['province']; ?>", "<?php echo $_GET['city']; ?>"]);
},
dataUrl: G_BASE_URL + '/account/ajax/areas_json_data/'
});
});
</script></pre>
}}}
阅读全文
收起全文