id()

Sets the element's ID using a given string.

Calling myElement.id() without an argument returns its ID as a string.

Ejemplos

Sintaxis

id(id)
id()

Parámetros

id
String: ID of the element.

Returns

String: ID of the element.

Referencias Relacionadas