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.

Returns

String: ID of the element.

संबंधित संदर्भ