There are blocks with the files contained in them. It is necessary that by clicking on a block with the "play" class, the playback of other audio is stopped, and the audio contained in the block that was clicked is played or paused via jQuery
<div class="play"> <img src="img/icons/play.png"> <audio src="media/music/Robbie Williams - Feel.mp3"></audio> </div> trying to do so
$('.play').click(function() { audioElement.pause(); $(this).find('audio').trigger("play"); }); if you remove
audioElement.pause(); the audio is played but the other is not interrupted
Thank you in advance for your help