Guys how do I play an mp3 file and then another once the first has finished?
I have tried the following without success..
$(\'#file1)[0].play( functi
You are not calling a jQuery method to begin with.
You could attach an event handler to the "onended" event:
"onended"
var file = $("#file1"); file.on( "ended", function(){ $("#file2")[0].play(); }); file[0].play();