Adding jquery function

This topic contains 9 replies, has 2 voices, and was last updated by  Robert Hamburg 6 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #387297

    Robert Hamburg
    Free User
    Post count: 216

    Hi,

    I’m trying to add a show and hide button in a wrodpress post using jquery code that I’ve entered into the whoop options but I’m not sure if I’m adding everything into the correct place.

    Here’s the Jquery code I put into Whoop options:

    $(“#hide”).click(function(){
    $(“timeperiods”).hide();
    });
    $(“#show”).click(function(){
    $(“timeperiods”).show();
    });

    Here are the buttons i’ve added on a wordpress post

    <button id=”hide”>Intermediate</button> <button id=”show”>Basic</button>

    Here is an example of the text in my wordpress post that I would like to hide/show:

    <div id= timeperiods>(0:29)</div>

    When either of the buttons are clicked they don’t do anything so hope you can help.
    thanks

    #387312

    Kor
    Moderator
    Post count: 16516

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #387398

    Robert Hamburg
    Free User
    Post count: 216
    This reply has been marked as private.
    #387401

    Robert Hamburg
    Free User
    Post count: 216

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #387469

    Kor
    Moderator
    Post count: 16516

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #387510

    Robert Hamburg
    Free User
    Post count: 216

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #387884

    Robert Hamburg
    Free User
    Post count: 216

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #387946

    Robert Hamburg
    Free User
    Post count: 216

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #387974

    Kor
    Moderator
    Post count: 16516

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #388004

    Robert Hamburg
    Free User
    Post count: 216

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket