Start typing a name in the input field below: First Name: Select name chintan dipmal aezaz First name: Suggestions: var city=; function addcity(str) { city=str; } function addkm(str) { if(city==){ document.getElementById(txtHint).innerHTML=SElect City; } else{ if (str.length == 0) { document.getElementById(txtHint).innerHTML = ; return; } else { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById(txtHint).innerHTML = this.responseText; } } xmlhttp.open(GET, emailvalid.php?city=+city+&km=+str, true); xmlhttp.send(); } } }
©