I used JS to create a three-level linkage between province, city, and county. The value that can be stored in the database is incorrect, and there are code and online issues, after I select the address, I will submit it to the database. But now, how to modify the value submitted to the database is the encoding above, n
Label: Implementation of three Cascade database mappings in Ztree city County Province.hbm.xml: > Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced. Implementation of three Cascade database mappings in Ztree city County
If you want to only three level click here: National provincial and county level three database
The last few days have been looking for more detailed data containing rural information in China's provinces and cities, and finally lucky to find a bunch of TXT documents (logically speaking, the state should provide it), which contains the vast majority of information, as follows:
China's administrative plann
no nonsense, on the code! Big God Don't spray ...
JS Code/* PID is his parent ID of the province's PID is 1, so the background pass the time is directly 1; returns a JSON; everyone knows.
This gets the first level of */$ (function () {$.post ("Getsjld.action", {pid:1}, function (data) {
for (var i in data) {var op = $ ("
JS to obtain the value of three-level linkage: The use of splicing method
var ADR = "";
ADR + = $ ("#provinceoption: Selected"). Text ()
Database of provinces, cities, counties, towns and villages throughout the country, detailed to the village data
Data from http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2013/index.html
CSDN Description: http://blog.csdn.net/datedateup/article/details/77163266
CSDN Download: http://download.csdn.net/download/datedateup/9933071
"The latest national provincial, city, county, town, village
Provincial Urban database download, for the general version of the provinces and cities to do the processing.General Edition download provincial and municipal database access version download (Universal version, without any processing) Access file format, without any processing.Due to business requirements, the following processing is done on the basis of the General edition:
treated by the municipali
Who has an official database accurate to the country, province, city, district, county, town, and village? There are some on the Internet, but they are very old. I don't know where it comes from. Is there any authority. In addition, I want to make a linkage. Is there any good plug-in recommendation? Who has an official database accurate to the country, province,
Label:The latest national provincial, city, and county databases can be directly imported into the database use.data Source:http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/201504/t20150415_712722.html
Id:
Unique PRIMARY Key ID
Code
Administrative Code
Name
City Name
PARENT_ID:
Parent ID
First_letter:
English first
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.