var audioElement = document.createElement("audio");
audioElement.setAttribute("src", "media/sounds/song.mp3");
$(".play").click(function() {;
HTML Code:
<a class="play">Play</a>
This is code I copied from an online demo and the demo works fine in Chrome & Mozilla (oddly not Safari), but I can't seem to get mine to work in Mozilla. I have tried hard coding the audio tag into the html, works for Chrome and Safari, but no luck with Mozilla. I know the audio element is not final spec but I was hoping for some insight.