---
updatedAt: 2026-05-15T15:22:44.000Z
agentTools:
  projectIndex: https://docs.joinforage.app/llms.txt
---

# mount()

`element.mount(htmlElementId)`

Attaches the [`EBT Element`](https://docs.joinforage.app/reference/ebt-elements) to the HTML container indicated by the provided ID.

## Parameters

<table>
  <thead>
    <tr>
      <th align="left"></th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td align="left">
        <code>htmlElementId</code><br />
        <span style={{color:"red"}}>required</span>
      </td>
      <td align="left">string</td>
      <td align="left">The ID of the container element where the EBT Element is to be mounted. The container should be a <code>&lt;div&gt;</code> with a unique ID attribute.</td>
    </tr>
  </tbody>
</table>

## Example

### Mount a `ForagePinElement` to the DOM

In this example, the `ForagePinElement` is used for a balance check:

```javascript
balanceElement.mount('balance-check-container')
```

# Sibling pages

* [clear()](https://docs.joinforage.app/reference/clear.md)
* [destroy()](https://docs.joinforage.app/reference/destroy.md)
* [on()](https://docs.joinforage.app/reference/on.md)