当前位置:网站首页>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
边栏推荐
- Yolov5 target detection neural network -- calculation principle of loss function
- Video networkState 属性
- 11.(地图数据篇)OSM数据如何下载使用
- 11. (map data section) how to download and use OSM data
- 程序员内卷和保持行业竞争力
- Want to ask, how to choose a securities firm? Is it safe to open an account online?
- abap查表程序
- [mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]
- Pytorch MLP
- Time tools
猜你喜欢
石油化工企业安全生产智能化管控系统平台建设思考和建议
yolov5目标检测神经网络——损失函数计算原理
Yolov5 target detection neural network -- calculation principle of loss function
XML parsing
12.(地图数据篇)cesium城市建筑物贴图
How to clear floating?
Redis master-slave mode
Wireless WiFi learning 8-channel transmitting remote control module
Mongodb replica set
1 plug-in to handle advertisements in web pages
随机推荐
Matlab boundarymask function (find the boundary of the divided area)
跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
redis 集群模式原理
无线WIFI学习型8路发射遥控模块
Understanding the architecture type of mobile CPU
15 methods in "understand series after reading" teach you to play with strings
Application of a class of identities (vandermond convolution and hypergeometric functions)
ACID事务理论
程序员内卷和保持行业竞争力
Redis master-slave mode
July Huaqing learning-1
【使用TensorRT通过ONNX部署Pytorch项目】
Solve readobjectstart: expect {or N, but found n, error found in 1 byte of
Matlab label2idx function (convert the label matrix into a cell array with linear index)
查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
一次生产环境redis内存占用居高不下问题排查
Install esxi 6.0 interactively
Liunx prohibit Ping explain the different usage of traceroute
【yolov5.yaml解析】
7月华清学习-1