On 7/20/09 1:06 PM, "koichirose" <koichir...@gmail.com> wrote:
> Hello, I'm using jQuery Autocomplete ( > http://docs.jquery.com/Plugins/Autocomplete > ) to display results from a php page. > > Since that is my only field, I want to submit the form when I click on > the result or I press the 'return' key. > > How do I do that? > > The result is showing something like 'artist - album' and I'd like to > post only the artist . > > Also, it would be event better without a form submit: the results > would have their own php-generated link to another php page with > artist passed as a $_GET variable. I click or press enter on them and > it would work just like a link. > > Is there a way to achieve that, either by submitting the form or by > linking to the new php page? take a look at result() documented on the page you liked above. you should be able to program the functionality you want in a result() handler.