Hi All,
I have an html form which I'm using to send data via ajax to a PHP script. The PHP script sends data back and it's displayed on the screen between DIV tags. This works fine. However, instead of displaying the data between DIV tags, I want the data to be returned inside the forms input field. Below is my form script.. Anyone want to take a crack at this?!
<div class='box' id='autocomplete' style='WIDTH:100px;'></div> <-- This is where the returned data shows up
<form name='search'>
<input name='keyword' onKeyUp='SendQuery(this.value)' class='formfield' maxlength='20' style='WIDTH:100px' autocomplete='off'> <-- Here I'd like to insert VALUE=XXX which would be the returned data.. Can this be done??
</form>
Any thoughts would be much appreciated!
I have an html form which I'm using to send data via ajax to a PHP script. The PHP script sends data back and it's displayed on the screen between DIV tags. This works fine. However, instead of displaying the data between DIV tags, I want the data to be returned inside the forms input field. Below is my form script.. Anyone want to take a crack at this?!
<div class='box' id='autocomplete' style='WIDTH:100px;'></div> <-- This is where the returned data shows up
<form name='search'>
<input name='keyword' onKeyUp='SendQuery(this.value)' class='formfield' maxlength='20' style='WIDTH:100px' autocomplete='off'> <-- Here I'd like to insert VALUE=XXX which would be the returned data.. Can this be done??
</form>
Any thoughts would be much appreciated!