It sure seems unreasonably difficult to get audio to play in mobile Safari on my iPad. Clearly I'm messing up somewhere. I read that you have to have a play action, which I've done, yet it doesn't play the audio. I just want to click an image button and play an mp3. What I've built works fine on my desktop, just doesn't play in mobile Safari.
$(".playback").click(function() {
var selectedAudio = $(this).attr("id");
var myAudio = document.getElementById(selectedAudio + "-audio");
myAudio.play();
});
Here's a fiddle I used for testing. Many thanks!