5 Replies Latest reply on Jul 9, 2013 11:37 AM by resdesign

    Use variable for symbol name

    Marlene Level 1

      I am trying to reference a symbol element that looks like this:


      elementName = variableName + "Menu";

      var menuChoice = sym.getSymbol('printMenu').$(elementName);


      when I console.log ("menuChoice" + menuChoice) I get

      object Object


      How do I accomplish using a variable as a symbol name?