> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# `__GetID`

## Introduction

Returns the ID selector of the Element.

## Syntax

```jsx
__GetID(element: Element) : string;
```

### Parameters

|   Key   | Description         |
| :-----: | ------------------- |
| element | Any Element object. |

### Return Value

The ID selector of the current Element. If it has not been set, an empty string is returned.

## Example

The frontend framework can retrieve the Element ID selector as follows.

```jsx
// main-thread.js
let element = __CreateElement('view', 0, {});
__SetID(element, 'video');

let id = __GetID(element);
```
