I ran out of my way to set focus to an input box after using visual_effect, like:
<?php echo link_to_function('Login', visual_effect('appear', 'login_form', array('duration' => 0.3))); ?>
and there is an "nickname" input box in login_form. How can I set focus on it?
I've tried body on_load but it doesn't work after clicking.