# P5js: play a song when selecting an item from a dropdown list

**URL:** https://discourse.processing.org/t/p5js-play-a-song-when-selecting-an-item-from-a-dropdown-list/26152
**Category:** Libraries
**Created:** [December 12, 2020, 6:11am UTC](https://discourse.processing.org/t/p5js-play-a-song-when-selecting-an-item-from-a-dropdown-list/26152 "2020-12-12T06:11:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ari01](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@ari01](https://discourse.processing.org/u/ari01)
#### Post date: [December 12, 2020, 6:11am UTC](https://discourse.processing.org/t/p5js-play-a-song-when-selecting-an-item-from-a-dropdown-list/26152/1 "2020-12-12T06:11:09Z")

</div>

> Hello! I want to use p5js to play songs when I select an item from a dropdown list. When an item is selected it should play a song allocated to it. And, also, the song needs to start playing after reCaptcha verification has been made. I have tried some code but the music plays right when I click on the item and I do not know how to attach more songs and specify to which item from the list they are linked to. Thank you!
