当前位置:网站首页>Select drop-down box realizes three-level linkage of provinces and cities in China
Select drop-down box realizes three-level linkage of provinces and cities in China
2022-07-05 12:07:00 【**inevitable**】
JS Select The drop-down box realizes the three-level linkage of provinces and cities in China
Linkage effect
Take Inner Mongolia Autonomous Region as an example
distpicker.js The resource acquisition
https://pan.baidu.com/s/1S17KyRmPfz6WYaYUV1kkuw
Extraction code :7rjv
HTML structure
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title> Multi level linkage in urban areas of China </title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
crossorigin="anonymous">
<style>
.test {
border: 1px solid red;
width: 600px;
height: 100px;
margin: 200px 450px;
}
.form-inline {
margin-left: 35px;
margin-top: 25px;
}
</style>
</head>
<body>
<div class="test">
<form class="form-inline">
<div data-toggle="distpicker">
<select class="form-control" data-province="---- Select Province ----"></select>
<select class="form-control" data-city="---- Choose the city ----"></select>
<select class="form-control" data-district="---- Selection area ----"></select>
</div>
</form>
</div>
<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" crossorigin="anonymous"></script>
<script src="./js/distpicker.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js" crossorigin="anonymous">
</script>
</body>
</html>
Pay attention to the introduction of distpicker.js The path of , Just change to your own path
边栏推荐
- 7月华清学习-1
- Open3D 欧式聚类
- pytorch-多层感知机MLP
- [mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]
- 【yolov3损失函数】
- 【PyTorch预训练模型修改、增删特定层】
- 一类恒等式的应用(范德蒙德卷积与超几何函数)
- Matlab label2idx function (convert the label matrix into a cell array with linear index)
- 【L1、L2、smooth L1三类损失函数】
- Matlab superpixels function (2D super pixel over segmentation of image)
猜你喜欢
随机推荐
[mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]
Sentinel sentinel mechanism of master automatic election in redis master-slave
【Win11 多用户同时登录远程桌面配置方法】
Pytorch softmax regression
JS for loop number exception
liunx禁ping 详解traceroute的不同用法
Intern position selection and simplified career development planning in Internet companies
[calculation of loss in yolov3]
多表操作-自关联查询
强化学习-学习笔记3 | 策略学习
Video networkState 属性
【无标题】
View all processes of multiple machines
[yolov5.yaml parsing]
Time tools
redis集群中hash tag 使用
Proof of the thinking of Hanoi Tower problem
JS for循环 循环次数异常
谜语1
12.(地图数据篇)cesium城市建筑物贴图