On Tue, Nov 17, 2009 at 11:08 AM, presto <presto...@gmail.com> wrote: > > Hi all. > [...] > So, how can I send a "focus and 'un-focus'" "function" to the country > field? > [...]
Doing more test, I found that the event that I want to simulate, is a tab after a focus and a double click. Both focus and double click I can already simulate. How can I simulate the tab keypress? (In other words: I want to switch to the next field just like the user would did if he was filling the form manually) I'm trying to use .trigger({type: 'keypress', which: 9}), but this is giving me the error: h.indexOf is not a function http://dev.domain.tld/js/libs/jquery.js Line 11 I'm using jQuery 1.2.6 and autocomplete 1.0.2. What am I missing? regards, -- davi