I have a slideshow, I'm trying to get every id content div to play the music in the div content. I was thinking of using an if ($ ("# Content1"). Is (": visible") {$ ('# 1.mp3'). Play ();} But I looked on the net how to do this but did not find anything like it :( Thank you so much guys. Stackoverflow SHOOWWW! :) Note: Code below is playing the 2 songs together.
<div class="slide">
<div class="content-switcher" id="Content1">
<img src="imagem"/>
<span class="pe-7s-volume">
<audio id="playTune" autoplay>
<source src="2.mp3">
</audio>
</span>
</div>
</div>
<div class="content-switcher" id="Content2">
<img src="img/2botao.jpg" style="height:100%;" />
<span class="pe-7s-volume">
<audio id="playTune" autoplay>
<source src="1.mp3">
</audio>
</span>
</div>
</div>