9 Replies Latest reply on Jul 16, 2015 4:38 PM by rodlab2x

    Simplify repetitive tasks with functions

    rodlab2x

      Hi I wonder how could I simplify this code? With array? Imagine I need more lines of the same show.

       

      sym.showChecks = function(){

         sym.getSymbol("sectionIntro").$("check1").show();

        sym.getSymbol("sectionIntro").$("check2").show();

        sym.getSymbol("sectionIntro").$("check3").show();

        sym.getSymbol("sectionIntro").$("check4").show();

      }

       

       

      Thanks,

       

      Rod