---
title: Add select in the controls
sidebar_position: 1
---
Sometimes you need to add a list in the controls, then you can use the `selector` and `onSelect` attribute when adding controls
▶ Run Code
```js
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
controls: [
{
position: 'right',
html: 'Subtitle 01',
selector: [
{
default: true,
html: 'Subtitle 01',
url: '/assets/sample/subtitle.srt?id=1',
},
{
html: 'Subtitle 02',
url: '/assets/sample/subtitle.srt?id=2',
},
],
onSelect: function (item, $dom) {
art.subtitle.switch(item.url, {
name: $dom.innerText,
});
return 'You click ' + item.html;
},
},
],
});
```