jQueryUI Autocomplete http://jqueryui.com/autocomplete/ is a excelent tool to create ajax/javascript google suggest style automplete forms. You can see an example in the site radiotower.gr

List changes when the user types something. It’s really cool and easy to implement. I was faced with one problem though. I wanted to automatically submit the form when the user selected something. I found the answer and I am giving it to you now:

 

$("#searchField").autocomplete({
    source: "values.json",
    minLength: 2,
    select: function(event, ui) { 
        $("#searchField").val(ui.item.label);
        $("#searchForm").submit(); }
});

searchField is the id of the input box, searchForm is the Id of the form.