2 Replies Latest reply on May 29, 2014 11:26 PM by jamesfootlight

    Is it possible to use symbols in an array rather than elements?

    jamesfootlight Level 1

      Hi, see below code, I wish to fade toggle symbols rather than elements, so how would I adapt the code below?

       

      var headers = sym.getSymbol("Headers").$(".press_head,.live_head,.shop_head,.videos_head,.releases_head ,.links_head,.contact_head,.home_head,.news_head");

      var contents = sym.getSymbol("Contents").$(".press_content,.live_content,.shop_content,.videos_content,. videoimages_content.releases_content,.links_content,.contact_content,.home_content,.news_c ontent");

       

      AdobeEdge.reset = function(){

       

      headers.each(function(){

      $(this).fadeOut();

      })

       

      contents.each(function(){

      $(this).fadeOut();

      });

       

      function isSame(myObject,str){

      var obj = $(myObject)[0].classList

      for (var i=0;i<obj.length;i++){

      if(obj[i]==str){

      return true;

      }

      }

      return false;

      }

      }

       

      thanks!