this is probably pretty straightforward but i’m struggling with it – I want to pause all videos I have running in a div container. At the moment, this is what I have:
// Doesn't work
$("#vid").find("video").get().pause();
// Works
$("#vid").find("video").get(0).pause();
What’s the best way to apply the pause function to each video element? A for/each loop?
1 Answer