当前位置:网站首页>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
边栏推荐
- Sentinel sentinel mechanism of master automatic election in redis master-slave
- 一类恒等式的应用(范德蒙德卷积与超几何函数)
- [deploy pytoch project through onnx using tensorrt]
- [loss functions of L1, L2 and smooth L1]
- Understanding the architecture type of mobile CPU
- Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in
- 【SingleShotMultiBoxDetector(SSD,单步多框目标检测)】
- 强化学习-学习笔记3 | 策略学习
- Linux Installation and deployment lamp (apache+mysql+php)
- 13. (map data) conversion between Baidu coordinate (bd09), national survey of China coordinate (Mars coordinate, gcj02), and WGS84 coordinate system
猜你喜欢
随机推荐
Use and install RkNN toolkit Lite2 on itop-3568 development board NPU
The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
liunx禁ping 详解traceroute的不同用法
多表操作-自关联查询
1 plug-in to handle advertisements in web pages
报错ModuleNotFoundError: No module named ‘cv2.aruco‘
16 channel water lamp experiment based on Proteus (assembly language)
Vscode shortcut key
What is the difference between canvas and SVG?
【使用TensorRT通过ONNX部署Pytorch项目】
JS for循环 循环次数异常
全网最全的新型数据库、多维表格平台盘点 Notion、FlowUs、Airtable、SeaTable、维格表 Vika、飞书多维表格、黑帕云、织信 Informat、语雀
pytorch-softmax回归
Splunk configuration 163 mailbox alarm
redis 集群模式原理
Pytorch MLP
Thoughts and suggestions on the construction of intelligent management and control system platform for safe production in petrochemical enterprises
13.(地图数据篇)百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换
网络五连鞭
Recyclerview paging slide









