Edit this page

up.form [up-hide-for]
HTML selector

Hides this element while an input field with [up-switch] has one of the given values.

The element will be shown for all other values.

Switching visibility


Modifying attributes

[up-hide-for]
optional

A list of input values for which this element should be hidden.

Multiple values can be separated by either a space (foo bar) or a comma (foo, bar).

If your values might contain spaces, you may also serialize them as a relaxed JSON array (["foo", "bar"]).

To react to the presence or absence of a value, use :blank or :present.

For checkboxes, you can react to :checked or :unchecked in addition to the checked value.