Autocomplete on select function
I have a autocomplete box using this plugin
http://bassistance.de/jquery-plugins/jq ... ocomplete/
Returns results no problem. I can't get my head round how to add an event when a selection is made.
Basically when someone selects one of the autocomplete options I want to redirect to a specific page (index.php?cms&p=tpl&s=edit&tplid='id of selected option')
-
$(document).ready(function(){
$("#searchfield").autocomplete('index.php?acms&s=ajax&amod=tpl&ajax=search');
});
hope this makes sense, guessing its really simple and I have just been trying to over complicate things.[/code]