Newbie q: Form element focus


#1

This is probably a dumb question, but is there an easy way to set the
focus of a form to the first visible/editable element? I’ve been
googling lots and searching documentation and haven’t come up with
anything. Help would be appreciated.


#2

In javascript assuming you have the prototype, etc libraries

$(‘form_element_id’).focus()