public Method

GeneratorMethods.hide(*ids)

Hides the visible DOM elements with the given ids.

Example:

# Hide a few people
# Generates: ["person_29", "person_9", "person_0"].each(Element.hide);
page.hide 'person_29', 'person_9', 'person_0'

Source Code

# File action_view/helpers/prototype_helper.rb, line 810
def hide(*ids)
  loop_on_multiple_args 'Element.hide', ids           
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.