Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7987795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:15:07+00:00 2026-06-04T12:15:07+00:00

I have a set of buttons in an array, and I want it so

  • 0

I have a set of buttons in an array, and I want it so that when you click one, and a video that it’s linked to starts to play, it unbinds the click to the buttons (ideally for the one you just clicked only, but I can’t even get it to work for the li). I have it as

$("#myVid").bind("playing", function() {
  //some stuff that happens
  $("li", ".thumbs").unbind('playVideo()')
        });

but it’s not working… what am I doing wrong here? ( playVideo() is an already defined function)

Just to be more specific:
the problem is that it’s supposed to unbind only once the video is playing, hence the .bind("playing", function().... I can get it deactivate the list, but its before it should…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:15:08+00:00Added an answer on June 4, 2026 at 12:15 pm

    If you created the event like so:

    $("li", ".thumbs").bind("click", playVideo);
    

    the opposite action would be to do this:

    $("li", ".thumbs").unbind("click", playVideo);
    

    The same function used to bind the click event must be used to remove the same event.

    function click() {
        $("#myVid").bind("loadeddata", function() {
        $("#bigPic").addClass("move");
        $("#MyT").fadeOut(750);
                });
        playVideo( $(this).index() );
    }
    
    $('li', '.thumbs').bind('touchend click', click);
    
    $("#myVid").bind("playing", function() {
        $('li', '.thumbs').unbind('touchend click', click);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a set of buttons that I want to add into an array
I have a set of buttons. I want that when I do mouse up
I have set the two buttons in preference.xml file. I want to go to
I have a set of buttons on one of my custom entities ribbon and
I have a set of radio buttons that are dynamically generated (via JSON call):
I have a set of radio buttons. In some cases I want the user
I have this set of labels and radio buttons that look like this: Entertainment:
I have a UIbutton title that I set with [[buttons objectAtIndex:selectedButtonTag] setTitle:file forState:UIControlStateNormal]; This
i have four radio buttons , and i want to set a text for
So i have these radio buttons in XHTML that I want to put into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.