"Modified" pure JS Province urban three-level linkage support JS default province city

Source: Internet
Author: User

---restore content starts---

<! DOCTYPE html>
<title> revision, QQ JS provincial three-level linkage-support default provinces and cities </title>
<!--using QQ's provinces and cities data--
<!--
<script type= "Text/javascript" src= "Http://ip.qq.com/js/geo.js" ></script>
-
<script type= "Text/javascript" src= "Geo.js" ></script>
<body onload= "setup ();p reselect (' Henan province ', ' Xinxiang ', ' Weihui ');" >
<form name= "Shareip" action= "/cgi-bin/feedback" method= "POST" >
<select class= "Select" name= "province" id= "S1" >
<option></option>
</select>
<select class= "Select" Name= "City" id= "S2" >
<option></option>
</select>
<select class= "Select" Name= "Town" id= "S3" >
<option></option>
</select>
<input id= "Address" name= "address" type= "hidden" value= ""/>
<input onclick= "Promptinfo (); Alert (document.getElementById (' address '). Value); return false; "type=" Submit "value=" Commit "/>
</form>
<script>
function Promptinfo ()
{
var address = document.getElementById (' address ');
var S1 = document.getElementById (' s1 ');
var s2 = document.getElementById (' s2 ');
var s3 = document.getElementById (' S3 ');
Address.value = s1.value + S2.value + s3.value;

}
</script>
</body>

---restore content ends---

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.