Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #442091

    Hi,

    This one is for Yigit if possible.

    Yigit gave me this code for toggle inside a table – and it works great:
    ————————————————————————————
    function add_custom_cs(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery( “.coursetitle” ).click(function() {
    jQuery(this).closest(“td”).find(“.courseinfo”).toggle();
    });
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_custom_cs’);
    ———————————————————————————

    What shoud I add to make the toggle box close when I click outside it or click on another line – now they close only if I click on the one that I opened.

    #442812

    Hey sasha!

    Thank you for using Enfold.

    Please give us a link to the page with the table element. I’ll ask Yigit to check it.

    Cheers!
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.