I did not understand what are you saying here is a code.
<html>
<script type="text/javascript">
function searchoption(){
var skw = document.getElementById("searchBar").value;
if(window.XMLHttpRequest){
xmlhttp = new XMLHttpRequest;
}else{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function () {
if(xmlhttp.readyState==4 && xmlhttp.status==200){
document.getElementById("sop").innerHTML = xmlhttp.responseText;
}
}
xmlhttp.open("GET","searchopt.php?skw="+skw,true);
xmlhttp.send();
}
</script>
<head>
</head>
<body>
<input type="text" id="searchBar" onkeyup="searchoption()" list="sop" />
<datalist id="sop">
</datalist>
</body>
</html>
please heeeeeelp me.