---
title: select
slug: viewer-2d/methods/select
docTags: 
createdAt: 2024-02-21T14:33:53.989Z
---

Selects the specified objects in the viewer.

## Example

::codepen{url="https://codepen.io/Catenda/embed/eYweQVR"}

## Usage

```javascript
const objectIds = ["object-1", "object-2"];

viewer2d.select(objectIds);
```

## Parameters

### objectIds

List of object ids to select.

| **Type**       | **Required** |
| -------------- | ------------ |
| Array\[String] | Yes          |

