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

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!