jQuery Video Target Question
jQuery Video Target Question
Out of context: Reply #4
- Started
- Last post
- 4 Responses
- ETM0
Quick jquery / YouTube frame API question. If I have:
Need a video to pause if the tab/div it's in is hidden. I have the following to close the tabs and open the one the user selects:
$(function() {
$('#showdiv1').click(function() {
$('div[id^=video]').hide();
$('#video1').show();
});How/where would I chain in when the tab is hidden:
player.pauseVideo();
Anything I've tried fails.