1 Reply Latest reply on Sep 27, 2015 11:55 AM by ChicoTom24

    Any way to code more efficiently?

    ChicoTom24 Level 1

      I'm looking for a way to code more efficiently.  Here is what I have...

       

      sym.getSymbol("finalselect").$("c1").hide()

      sym.getSymbol("finalselect").$("c2").hide()

      sym.getSymbol("finalselect").$("c3").hide()

      sym.getSymbol("finalselect").$("c4").hide()

      sym.getSymbol("finalselect").$("c5").hide()

      sym.getSymbol("finalselect").$("c6").hide()

       

      Can I use a loop to increment the element name from "c1" to "c6" and have all the elements hide?