Focus on the audio widget play/pause button when playing
ology opened this issue · comments
So I have this html5 audio element. When I inspect it (with the web dev tools), the play/pause button says it's named button#playButton. But I cannot set the focus to it with anything I try. The most basic are:
Plain JS: document.getElementById("playbutton").focus();
or
jQuery: $('#playbutton').focus();
I want to add the focus under the $('#myAudio').on('playing', function() { ...
bit. But those are no dice. :\
Wrong #id. Use #myAudio