Below script use for show suggest keyword below textfield and help user easy to search.
<script type="text/javascript">
function get_data()
{
var terms = new Array();
terms.push({val:1,activity:"Acyclovir Cream"});
terms.push({val:1,activity:"Amoxicillin"});
terms.push({val:1,activity:"Ampicillin"});
terms.push({val:1,activity:"Atorvastatin"});
terms.push({val:1,activity:"Azithromycin"});
return terms;
}
</script>
.......
<form action="search_result_php.php" method="get">
<input id="s" type="text" onkeyup="suggest(this.value,event);" onkeydown="return tabfix(this.value,event);" onblur="clearSuggest();" />
<p class="nodisplay">
<label>kIndex</label>
<input class="nodisplayd" type="text" id="keyIndex" />
</p>
<p class="nodisplay">
<label>rev</label>
<input class="nodisplayd" type="text" id="sortIndex" />
</p>
<div id="results"></div>
</form>
-------------------------------
I want to know how to submit this form?
I tried add name="search" in textfield. But cannot success to submit.