I have the following function that I would like to work with a class "pause" instead of an id. I did see a few topics about this however I didn't quite understand how would this work. Thanks!!!
function onPlayerReady(event) {
document.getElementById('pause').onclick = function() {
youtubePlayer1.pauseVideo();
youtubePlayer2.pauseVideo();
youtubePlayer3.pauseVideo();
e.preventDefault();
};
};