0 Replies Latest reply on Oct 15, 2015 7:30 PM by cori_heart

    mobile raw html table

    cori_heart

      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>