Calling 'activate' on an accordion element steals focus
I have a page with an automated accordion, where a new element opens
every few seconds. I do this by calling
$("#accordion").accordion('activate', elementIndex);
But this always seems to steal focus, which is particularly annoying
when a user is trying to fill in a login form. Is there any way to
activate the element without stealing focus?