<html>
<head>
<script type="text/jscript" src="jquery.min.js"></script>
<script type="text/javascript">
{
function getStates(value){
$.post("getStates.php",{partialStates:value}.function(data)
$("#results").html(data)
});
}
</script>
</head>
<body>
<input type="text" onKeyUp="getStates(this.value)"/>
<br>
<div id="results"> </div>
</body>
</html>