GIF89a
function loadCity() { var state=$("#state").val(); if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); } else { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (this.readyState==4 && this.status==200) { document.getElementById("loadS").innerHTML=this.responseText; } }; xmlhttp.open("GET","loadCity.php?state="+state,true); xmlhttp.send(); }