mobile raw html table

cori_heart

15-10-2015

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>

Accepted Solutions (0)

Answers (0)