Please provide a testpage. Jörn
On Sat, Dec 27, 2008 at 1:25 AM, Olaf <olaf.spaarm...@googlemail.com> wrote: > > Hi, > > thanks for the great plugin! I'm having some problems here on Firefox > 3 and Safari: When adding autocomplete to a field everything works > fine, except that the form gets submitted when I select a entry from > the list and press Enter. If I put a onsubmit = "return false;" in my > form, nothing happens at all and firebug doesn't show any errors. I > also googled a lot and some people seem to have the same problem, but > I didn't find any solution. > > Here's my form HTML: > > <form action="/people" class="new_person" id="new_person" > method="post" onSubmit="return false;"> > > <input autocomplete="off" id="person_company_name" name="person > [company_name]" size="30" type="text" /> > > <input id="person_submit" name="commit" type="submit" value="Save" /> > > </form> > > > And here is the jQuery Code in a Javascript File: > > jQuery(document).ready(function() { > jQuery("#person_company_name").autocomplete("/people/ > auto_complete_for_company_name") > }); > > Please help anyone! I would really appreciate it! If you need any more > information, just drop me a note. Thanks! >