var massVideo = $('.video-js'); for(var i = 0; i < massVideo.length; i++){ videojs(massVideo[i]).ready(function(){}); }