Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

mobile raw html table

Avatar

Level 1

Is there any reason why javascript wont work in that tab?

 


<script language="JavaScript" type="text/javascript">
/* FAQ "cleanup" script. Collapses more than five and provides open-close-ability */
$(document).ready(function() {
    if( $("div.bch-faq-block").length &gt; 5 ) {
        $("div.bch-faq-block").addClass('closed');
        $("div.bch-faq-block &gt; div").hide();        
        if ( window.location.hash ) {
          var hashOffset = $( "[name='"  + window.location.hash.substr(1) + "']" ).offset();
            if( hashOffset.top )
              window.scrollTo(hashOffset.left,hashOffset.top);
          }
    }

    $("div.bch-faq-block &gt; h3").click(function(e){
        if( $(this).parent("div.bch-faq-block").hasClass('closed') ){
            $(this).parent("div.bch-faq-block").removeClass('closed');
            
        }
        else {
            
                $(this).parent("div.bch-faq-block").addClass('closed');                    
            });
        }
        
    });
});
</script>

0 Replies