id()

Sets the element's ID using a given string.

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

예제

구문

id(id)
id()

매개변수

id
String: ID of the element.

반환값

String: ID of the element.

관련 레퍼런스