+ 1
How can I make the melody play when I click on a specific element
I need to do it.
4 Answers
+ 2
Thanks
+ 1
You can add the below function to you event listener:
function myFunction() {
var x = document.getElementById("myAudio").play();
}
+ 1
And:
Const play=()=>{
Let x=$("#myaudio").play()
}
0
jq I find here unnecessary