# r

## Function element

- Signature:
    `java.lang.String element(java.lang.String)`
  Description:
    The r:element('id') function is a shortcut for the equivalent document.getElementById(#{r:clientId('id')}) code. It returns the element from the client, based on the passed server-side component identifier. If the specified component identifier is not found, null is returned instead.

- Function Information
  Info | Value
  --- | ---
  Function Class | `org.richfaces.ui.misc.RichFunction`
  Function Signature | `java.lang.String element(java.lang.String)`
  Display Name | None

Output generated by Vdldoc View Declaration Language Documentation Generator.