<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>省市区三级联动</title>
<style type="text/css">
select{
width: 200px;
}
</style>
<script src="js/jquery-1.8.3.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
$(function () {
$.ajax({
type: "get",
url: "findProvince",
dataType: "json",
success: function (data) {
var obj = $("#province");
for (var i = 0; i < data.length; i++) {
var choose = "<option value='" + data[i].provinceCode + "'>" + data[i].name + "</option>";
obj.ap
ajax 实现 省市区 三级联动
最新推荐文章于 2022-05-29 18:43:16 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)