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() {

    How/where would I chain in when the tab is hidden:


    Anything I've tried fails.

    • I didn't think it needed it's own thread, so bumped this old one.ETM
    • BTW #showdiv1 is just the anchor id, #video1 is the div the video resides in.ETM

View thread