代码如下:
html xmlns="http://www.w3.org/1999/xhtml"
head runat="server"
titlejquery xml解析/title
script src="jquery.min.js" type="text/javascript"/script
script type="text/javascript"
$(document).ready(function(){
$.ajax({url:"City.xml",
success:function(xml){
$(xml).find("province").each(function(){
var t = $(this).attr("name");//this-
$("#DropProvince").append("option"+t+"/option");
});
}
});
$("#DropProvince").change(function(){
$("#sCityoption").remove();
var pname = $("#...[ 查看全文 ]