Newbie q: Form element focus

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.

In javascript assuming you have the prototype, etc libraries

$(‘form_element_id’).focus()

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs