Having a problem attaching 'one' to an audio tag. Here's the structure:
<div id="song"></div>
Individual songs are loaded into this div, eg "song1.htm":
<audio id="song1" preload controls autoplay> <source src="song1.mp3" type="audio/mp3"> your current browser does not support the new audio standard: upgrade if you can </audio>
I want to attach an animation to fire once when the song starts playing:
function myAnimation() { /// }
In an external javascript file, I've tried
$('#song #song1').one('play', function() { myAnimation() ; });