JSON data to achieve three levels of linkage between provinces, cities, and counties drop-down menu
Just a few linesCodeThat's done:
< Html Xmlns = "Http://www.w3.org/1999/xhtml" >
< Head >
< Title > Hooyes Tester </ Title >
< Script Type = "Text/JavaScript" SRC = "Hooyes. script/jquery. js" > </ Script >
< Script Type = "Text/JavaScript" SRC = "Hooyes. script/Citys. js" > </ Script >
< Script Type = "Text/JavaScript" SRC = "Hooyes. script/registeradapter. js" > </ Script >
< Link Href = "Hooyes. CSS/hooyes.region.css" REL = "Stylesheet" Type = "Text/CSS" />
</ Head >
< Body >
< Form ID = "Form1" Action = "" Name = "Form1" >
< Select ID = "Select1" Name = "Select1" > </ Select >
< Select ID = "Select2" Name = "Select2" > </ Select >
< Select ID = "Select3" Name = "Select3" > </ Select >
</ Form >
</ Body >
</ Html >
Citys. JS is a JSON-formatted provincial/municipal data, which can be modified as needed
View Demo:
Demo 1: demo for developer
Demonstration 2: An example of a practical application
Download this sample code: Download